From 7d6fab0644fea44b40c2da1bae97bf891e63a7f3 Mon Sep 17 00:00:00 2001 From: Simmo Saan Date: Tue, 18 Aug 2015 13:21:58 +0300 Subject: core: fix /uptime output for 0 days --- src/core/wee-command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core') diff --git a/src/core/wee-command.c b/src/core/wee-command.c index 87bf62fc7..c128f423c 100644 --- a/src/core/wee-command.c +++ b/src/core/wee-command.c @@ -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, -- cgit v1.2.3