Jelajahi Sumber

Merge branch 'maint'

* maint:
  * Pass false to daysdur()
Bryan Drewery 14 tahun lalu
induk
melakukan
bdb029c081
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      src/chanprog.c

+ 2 - 2
src/chanprog.c

@@ -262,7 +262,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));
@@ -274,7 +274,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);
   }