summaryrefslogtreecommitdiffstats
path: root/examples/timer.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-12-14 00:32:05 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-12-14 00:32:05 +0100
commitf0381a7fb305a371208df62d339540ce3d48f9da (patch)
tree59a855a7ba5c3d65a98929d4d3a7e00211218839 /examples/timer.rs
parentffa46898d983fc15ce6051a427622c058ce4e151 (diff)
downloadiced-f0381a7fb305a371208df62d339540ce3d48f9da.tar.gz
iced-f0381a7fb305a371208df62d339540ce3d48f9da.tar.bz2
iced-f0381a7fb305a371208df62d339540ce3d48f9da.zip
Use `surf` in `pokedex` example
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,
))