1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 22:06:38 +02:00

core: fix /uptime output for 0 days

This commit is contained in:
Simmo Saan
2015-08-18 13:21:58 +03:00
parent 46a9d17ac3
commit 7d6fab0644
+1 -1
View File
@@ -6215,7 +6215,7 @@ COMMAND_CALLBACK(uptime)
snprintf (string, sizeof (string),
"WeeChat uptime: %d %s %02d:%02d:%02d, started on %s",
day,
(day > 1) ? "days" : "day",
(day != 1) ? "days" : "day",
hour,
min,
sec,