From f0381a7fb305a371208df62d339540ce3d48f9da Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sat, 14 Dec 2019 00:32:05 +0100 Subject: Use `surf` in `pokedex` example --- examples/timer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/timer.rs') 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, )) -- cgit