aboutsummaryrefslogtreecommitdiff
path: root/src/consts.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/consts.rs')
-rw-r--r--src/consts.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/consts.rs b/src/consts.rs
index 2b93133..3e464e3 100644
--- a/src/consts.rs
+++ b/src/consts.rs
@@ -8,5 +8,5 @@ pub const DISPLAY_UPDATE_SLEEP_TIME_MICROS: u64 =
((1000000 / DISPLAY_UPDATE_RATE) as f64 / SPEEDUP_FACTOR) as u64;
pub const CPU_CLOCK_SPEED: u64 = 4_194_304;
-pub const CPU_CYCLE_LENGTH_NANOS: u64 =
- ((1_000_000_000 / CPU_CLOCK_SPEED) as f64 / SPEEDUP_FACTOR) as u64;
+pub const CPU_CYCLE_LENGTH_NANOS: f64 =
+ ((1_000_000_000. / CPU_CLOCK_SPEED as f64) / SPEEDUP_FACTOR) as f64;