From ec55a25620bb2ce545c63f123a7dfbb5002fe5d1 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sun, 25 Dec 2016 12:32:25 -0500 Subject: [PATCH] It makes sense to simplify these ahead of time. --- Storage/Disk/DiskController.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Storage/Disk/DiskController.cpp b/Storage/Disk/DiskController.cpp index a8f0d4991..18bb0a1a3 100644 --- a/Storage/Disk/DiskController.cpp +++ b/Storage/Disk/DiskController.cpp @@ -179,8 +179,10 @@ void Controller::end_writing() void Controller::set_expected_bit_length(Time bit_length) { bit_length_ = bit_length; + bit_length_.simplify(); cycles_per_bit_ = Storage::Time(8000000) * (bit_length * rotational_multiplier_); + cycles_per_bit_.simplify(); // this conversion doesn't need to be exact because there's a lot of variation to be taken // account of in rotation speed, air turbulence, etc, so a direct conversion will do