diff options
author | Simon Rettberg | 2019-06-05 16:20:14 +0200 |
---|---|---|
committer | Simon Rettberg | 2019-06-05 16:20:14 +0200 |
commit | a0e76b84cc60b68a332fc9e209e6520171cf6a4d (patch) | |
tree | db233de87885cd60df2b05ee859140c83aaceecb | |
parent | Use new idle-daemon instead of file (diff) | |
download | bwlp-screensaver-26.tar.gz bwlp-screensaver-26.tar.xz bwlp-screensaver-26.zip |
Fix sign errorv26
-rw-r--r-- | src/saverwidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saverwidget.cpp b/src/saverwidget.cpp index 13340a0..359c2bd 100644 --- a/src/saverwidget.cpp +++ b/src/saverwidget.cpp @@ -21,7 +21,7 @@ static QString formatTime(qlonglong span) qlonglong days = span / 86400; if (days > 0) { ret = QString::number(days) + "d "; - span += 86400 * days; + span -= 86400 * days; } return ret + QString("%1:%2:%3").arg(span / 3600, 2, 10, C_ZERO).arg((span % 3600) / 60, 2, 10, C_ZERO).arg(span % 60, 2, 10, C_ZERO); } |