summaryrefslogtreecommitdiffstats
path: root/examples/timer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/timer.rs')
-rw-r--r--examples/timer.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/timer.rs b/examples/timer.rs
index b64b3ef5..367c5b2b 100644
--- a/examples/timer.rs
+++ b/examples/timer.rs
@@ -92,7 +92,7 @@ impl Application for Timer {
let duration = Text::new(format!(
"{:0>2}:{:0>2}:{:0>2}.{:0>2}",
seconds / HOUR,
- seconds / MINUTE,
+ (seconds % HOUR) / MINUTE,
seconds % MINUTE,
self.duration.subsec_millis() / 10,
))