summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);
}