summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/timetrack3/timetrack.html4
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/timetrack3/timetrack.html b/modules/timetrack3/timetrack.html
index 3790f43..2d41bff 100644
--- a/modules/timetrack3/timetrack.html
+++ b/modules/timetrack3/timetrack.html
@@ -89,9 +89,7 @@ function formatduration(secs) {
secs = ~~(secs / 60);
if (secs % 60 != 0) r = secs % 60 + "m" + r;
secs = ~~(secs / 60);
- if (secs % 24 != 0) r = secs % 24 + "h" + r;
- secs = ~~(secs / 24);
- if (secs != 0) r = secs + "d" + r;
+ if (secs != 0) r = secs + "h" + r;
if (r == "") r = "0s";
return r;
}