summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2019-06-05 16:20:14 +0200
committerSimon Rettberg2019-06-05 16:20:14 +0200
commita0e76b84cc60b68a332fc9e209e6520171cf6a4d (patch)
treedb233de87885cd60df2b05ee859140c83aaceecb
parentUse new idle-daemon instead of file (diff)
downloadbwlp-screensaver-a0e76b84cc60b68a332fc9e209e6520171cf6a4d.tar.gz
bwlp-screensaver-a0e76b84cc60b68a332fc9e209e6520171cf6a4d.tar.xz
bwlp-screensaver-a0e76b84cc60b68a332fc9e209e6520171cf6a4d.zip
Fix sign errorHEADv26master
-rw-r--r--src/saverwidget.cpp2
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);
}