diff options
-rw-r--r-- | usr.bin/rup/rup.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/rup/rup.c b/usr.bin/rup/rup.c index a93c6a2..b660b81 100644 --- a/usr.bin/rup/rup.c +++ b/usr.bin/rup/rup.c @@ -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'; |