library: Add space after days for uptime
Uptime output for both w and uptime command were showing no comma or space after days. $ ./uptime 18:32:21 up 22 days7 min, 6 users, load average: 0.23, 0.46, 0.64 Minor tweak to fix this.
This commit is contained in:
parent
4c31bb49e5
commit
617a4d0f70
@ -125,7 +125,7 @@ PROCPS_EXPORT char *procps_uptime_sprint(void)
|
||||
realtime->tm_hour, realtime->tm_min, realtime->tm_sec);
|
||||
|
||||
if (updays)
|
||||
pos += sprintf(upbuf + pos, "%d %s", updays, (updays > 1) ? "days" : "day");
|
||||
pos += sprintf(upbuf + pos, "%d %s, ", updays, (updays > 1) ? "days" : "day");
|
||||
|
||||
if (uphours)
|
||||
pos += sprintf(upbuf + pos, "%2d:%02d, ", uphours, upminutes);
|
||||
|
Loading…
x
Reference in New Issue
Block a user