diff options
| author | Crist J. Clark <cjc@FreeBSD.org> | 2001-09-22 09:33:00 +0000 |
|---|---|---|
| committer | Crist J. Clark <cjc@FreeBSD.org> | 2001-09-22 09:33:00 +0000 |
| commit | cfd848db6f8460820e19a4ca3fa494802ab1519a (patch) | |
| tree | 22f5756e301c514139d7123fb5c86cb198e55a1a | |
| parent | 33c3bd0ab52c15265e33d2fc9360217e6a6d3011 (diff) | |
Notes
| -rw-r--r-- | usr.bin/w/w.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/w/w.c b/usr.bin/w/w.c index 2bc15fe89f7e..d00713d31020 100644 --- a/usr.bin/w/w.c +++ b/usr.bin/w/w.c @@ -452,7 +452,8 @@ pr_header(nowp, nusers) if (sysctl(mib, 2, &boottime, &size, NULL, 0) != -1 && boottime.tv_sec != 0) { uptime = now - boottime.tv_sec; - uptime += 30; + if (uptime > 60) + uptime += 30; days = uptime / 86400; uptime %= 86400; hrs = uptime / 3600; |
