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:
Bill Fenner 2001-10-17 01:44:34 +00:00
parent 2210e5d9fa
commit 2856a77139
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=85039

View file

@ -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';