summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoranbr <vdr07@deltab.de>2013-10-26 16:58:05 +0200
committeranbr <vdr07@deltab.de>2013-10-26 16:58:05 +0200
commit291380701ee48d92b46bf4c1ab0988ee6756ed96 (patch)
tree8fa75fe24ab28330d93e8ceec5883b78a3336e00
parent0f3cf887c868ace108e814bd31fb3bffa1e6568a (diff)
downloadvdr-plugin-targavfd-291380701ee48d92b46bf4c1ab0988ee6756ed96.tar.gz
vdr-plugin-targavfd-291380701ee48d92b46bf4c1ab0988ee6756ed96.tar.bz2
Small improvement of the function FormatReplayTime
-rw-r--r--watch.c2
1 files changed, 1 insertions, 1 deletions
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;