summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorSimmo Saan <simmo.saan@gmail.com>2015-08-18 13:21:58 +0300
committerSimmo Saan <simmo.saan@gmail.com>2015-08-18 13:51:57 +0300
commit7d6fab0644fea44b40c2da1bae97bf891e63a7f3 (patch)
tree92dfbe67c2d1e43e8dc76c640623a33cfbf355e9 /src/core
parent46a9d17ac331b1df9fbd33a7c23f87fd58246a2e (diff)
downloadweechat-7d6fab0644fea44b40c2da1bae97bf891e63a7f3.zip
core: fix /uptime output for 0 days
Diffstat (limited to 'src/core')
-rw-r--r--src/core/wee-command.c2
1 files changed, 1 insertions, 1 deletions
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,