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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user