diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2015-08-22 07:23:20 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2015-08-22 07:23:20 +0200 |
commit | 0513800cb6eac66360320c4fba63354482f293b7 (patch) | |
tree | 3489b167a3c21ee6231303c8504bfe2921bfa78c /src | |
parent | 99580f88bbfc426302aaf711617493cf5eb71a97 (diff) | |
parent | 7d6fab0644fea44b40c2da1bae97bf891e63a7f3 (diff) | |
download | weechat-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.c | 2 |
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, |