mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-23 19:28:36 +00:00
If the remote uptime is less than one minute, print the uptime in
seconds instead of leaving the uptime field blank.
This commit is contained in:
parent
2210e5d9fa
commit
2856a77139
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=85039
|
@ -133,6 +133,8 @@ rstat_reply(caddr_t replyp, struct sockaddr_in *raddrp)
|
|||
else
|
||||
if (host_uptime.tm_min != 0)
|
||||
sprintf(hours_buf, "%2d mins, ", host_uptime.tm_min);
|
||||
else if (host_stat->curtime.tv_sec < 60)
|
||||
sprintf(hours_buf, "%2d secs, ", host_uptime.tm_sec);
|
||||
else
|
||||
hours_buf[0] = '\0';
|
||||
|
||||
|
|
Loading…
Reference in a new issue