View | Details | Raw Unified | Return to bug 30680
Collapse All | Expand All

(-)src/usr.bin/w.c Thu Sep 20 15:20:11 2001 (-1 lines)
Lines 450-456 Link Here
450
       if (sysctl(mib, 2, &boottime, &size, NULL, 0) != -1 &&
450
       if (sysctl(mib, 2, &boottime, &size, NULL, 0) != -1 &&
451
           boottime.tv_sec != 0) {
451
           boottime.tv_sec != 0) {
452
               uptime = now - boottime.tv_sec;
452
               uptime = now - boottime.tv_sec;
453
               uptime += 30;
454
               days = uptime / 86400;
453
               days = uptime / 86400;
455
               uptime %= 86400;
454
               uptime %= 86400;
456
               hrs = uptime / 3600;
455
               hrs = uptime / 3600;

Return to bug 30680