Time since reboot

Duane Attaway dattaway at dattaway.org
Tue Feb 11 05:16:01 CST 2003


On Mon, 10 Feb 2003, Jacob Hurley wrote:

> Yes, and don't forget 
> 
> # last reboot

Thanks!  And now for a weird story of uptime that lies...

I guess recompiling my system over time caused my uptime recycle every 45
days.  I'm still logged in since October, but it currently shows an uptime
of 41 days.  Calculating the numbers from /proc/uptime factor out to 
September, so I'm trying to figger out how uptime, top, and w are munging 
my numbers... grrrrr...

dattaway root # w
 23:06:25  up 41 days,  7:04,  6 users,  load average: 0.32, 0.21, 0.08
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU  WHAT
root     vc/2     -                 8Dec02 41days  0.18s  0.08s  -bash 
root     vc/6     -                 8Oct02 17days  1.28s  1.16s  -bash 
root     pts/0    24.31.237.172    11:02pm  1.00s  0.28s  0.14s  w 
dattaway pts/1    24.31.237.172    11:02pm 58.00s  5.87s  5.79s  pine 
dattaway pts/2    24.31.237.172    11:03pm  3:12   0.10s  0.09s  -bash 
root     pts/3    24.31.237.172    11:03pm  2:57  23.25s 23.17s  iptraf -d

dattaway root # last reboot
reboot   system boot  2.4.19-gentoo-r7 Mon Sep 23 07:26         (140+16:40) 
reboot   system boot  2.4.19-gentoo-r7 Tue Sep 10 14:33         (12+16:48)  
reboot   system boot  2.4.19-gentoo-r7 Mon Sep  9 14:44         (13+16:38)  
reboot   system boot  2.4.19-gentoo-r7 Mon Sep  9 12:38         (13+18:43)  
reboot   system boot  2.4.19-gentoo-r7 Mon Sep  9 12:32         (13+18:49)  
reboot   system boot  2.4.19-gentoo-r7 Mon Sep  9 11:35         (13+19:46)  
reboot   system boot  2.4.19-gentoo-r7 Tue Aug 20 19:51         (33+11:30)  
reboot   system boot  2.4.19-gentoo-r7 Mon Aug 19 20:03          (23:46)    
reboot   system boot  2.4.19-gentoo-r7 Sun Jul 28 12:29         (23+07:19)  
reboot   system boot  2.4.19-gentoo-r7 Sun Jul 28 11:09          (-3:-40)   
reboot   system boot  2.4.19-gentoo-r7 Sun Jul 28 11:02          (00:04)    
reboot   system boot  2.4.19-gentoo-r7 Tue Jul 23 18:03         (4+17:03)   
reboot   system boot  2.4.19-gentoo-r7 Tue Jul 23 17:56         (4+17:09)   
reboot   system boot  2.4.19-gentoo-r7 Sun Jul 21 15:49          (00:00)    
reboot   system boot  2.4.19-gentoo-r7 Sun Jul 21 15:29          (00:03)    
reboot   system boot  2.4.19-gentoo-r7 Sun Jul 21 14:02          (01:08)    
reboot   system boot  2.4.19-gentoo-r7 Tue Jul 16 17:42         (4+20:16)   
reboot   system boot  2.4.19-gentoo-r7 Mon Dec  6 17:58         (957+19:00) 
reboot   system boot  2.4.19-gentoo-r7 Mon Dec  6 17:33          (00:22)    

it even shows the first time I booted gentoo!  *sniff*

--
"It is the duty of a patriot to protect his country from its government"
-Thomas Paine
http://dattaway.org    




More information about the Kclug mailing list