fixed comment copy fail :D
authorpk910 <philipp@zoelle1.de>
Sun, 21 Aug 2011 06:45:48 +0000 (08:45 +0200)
committerpk910 <philipp@zoelle1.de>
Sun, 21 Aug 2011 06:45:48 +0000 (08:45 +0200)
tools.c

diff --git a/tools.c b/tools.c
index cb00985435eb4142e9b130aa908e024e93fd14d5..3bc3374139748594d1a62848c34d0a4d5dfb9bb8 100644 (file)
--- a/tools.c
+++ b/tools.c
@@ -195,7 +195,7 @@ int timeToStr(struct UserNode *user, int seconds, int items, char *buf) {
         item[citem++] = build_language_string(user, NULL, (tmp == 1 ? "TIME_DAY" : "TIME_DAYS"), tmp);
         seconds -= tmp * 86400;
     }
-    if(citem != items && seconds >= 3600) { //60*60 = 86400
+    if(citem != items && seconds >= 3600) { //60*60 = 3600
         tmp = seconds / 3600;
         item[citem++] = build_language_string(user, NULL, (tmp == 1 ? "TIME_HOUR" : "TIME_HOURS"), tmp);
         seconds -= tmp * 3600;