From 291380701ee48d92b46bf4c1ab0988ee6756ed96 Mon Sep 17 00:00:00 2001 From: anbr Date: Sat, 26 Oct 2013 16:58:05 +0200 Subject: Small improvement of the function FormatReplayTime --- watch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/watch.c b/watch.c index 29efe69..6873ec4 100644 --- a/watch.c +++ b/watch.c @@ -621,7 +621,7 @@ const char * cVFDWatch::FormatReplayTime(int current, int total, double dFrameRa int cs = (int)((double)current / dFrameRate); int ts = (int)((double)total / dFrameRate); - bool g = ((cs / 3600) > 0) || ((ts / 3600) > 0); + bool g = (cs > 3600) || (ts > 3600); int cm = cs / 60; cs %= 60; -- cgit v1.2.3