Explorar o código

* Pass false to daysdur()

Bryan Drewery %!s(int64=14) %!d(string=hai) anos
pai
achega
945c5156a8
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/chanprog.c

+ 2 - 2
src/chanprog.c

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