diff --git a/basicstopwatch.go b/basicstopwatch.go index b6cdc99..f0c07af 100644 --- a/basicstopwatch.go +++ b/basicstopwatch.go @@ -18,7 +18,7 @@ func (t *BasicStopwatch) left() string { return fmt.Sprintf( "%02d:%02d:%02d", int(cur.Hours()), - int(cur.Minutes()), + int(cur.Minutes())%60, int(cur.Seconds())%60, ) } diff --git a/basictimer.go b/basictimer.go index 7b020b3..0a6030f 100644 --- a/basictimer.go +++ b/basictimer.go @@ -18,7 +18,7 @@ func (t *BasicTimer) left() string { return fmt.Sprintf( "%02d:%02d:%02d", int(cur.Hours()), - int(cur.Minutes()), + int(cur.Minutes())%60, int(cur.Seconds())%60, ) }