Browse Source

* Pass false to daysdur()

Bryan Drewery 14 năm trước cách đây
mục cha
commit
945c5156a8
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/chanprog.c

+ 2 - 2
src/chanprog.c

@@ -259,7 +259,7 @@ void tell_verbose_uptime(int idx)
 # endif
 # endif
 #endif /* HAVE_GETRUSAGE */
 #endif /* HAVE_GETRUSAGE */
 
 
-  daysdur(now, online_since, s, sizeof(s));
+  daysdur(now, online_since, s, sizeof(s), false);
 
 
   if (backgrd)
   if (backgrd)
     strlcpy(s1, "background", sizeof(s1));
     strlcpy(s1, "background", sizeof(s1));
@@ -271,7 +271,7 @@ void tell_verbose_uptime(int idx)
   }
   }
   simple_snprintf(outbuf, sizeof(outbuf), "Online for %s", s);
   simple_snprintf(outbuf, sizeof(outbuf), "Online for %s", s);
   if (restart_time) {
   if (restart_time) {
-    daysdur(now, restart_time, s, sizeof(s));
+    daysdur(now, restart_time, s, sizeof(s), false);
     size_t olen = strlen(outbuf);
     size_t olen = strlen(outbuf);
     simple_snprintf(&outbuf[olen], sizeof(outbuf) - olen, " (%s %s ago)", restart_was_update ? "updated" : "restarted", s);
     simple_snprintf(&outbuf[olen], sizeof(outbuf) - olen, " (%s %s ago)", restart_was_update ? "updated" : "restarted", s);
   }
   }