summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2015-08-22 07:23:20 +0200
committerSébastien Helleu <flashcode@flashtux.org>2015-08-22 07:23:20 +0200
commit0513800cb6eac66360320c4fba63354482f293b7 (patch)
tree3489b167a3c21ee6231303c8504bfe2921bfa78c /src
parent99580f88bbfc426302aaf711617493cf5eb71a97 (diff)
parent7d6fab0644fea44b40c2da1bae97bf891e63a7f3 (diff)
downloadweechat-0513800cb6eac66360320c4fba63354482f293b7.zip
Merge pull request #495 from sim642/uptime-o
core: fix "/uptime -o" output for 0 days
Diffstat (limited to 'src')
-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,