Monday, November 30, 2009

Re: [BLUG] uptime no reset at 1024

Let's think realisticly. (Or, perhaps, provide an Occam's Razor smack
down.)

The uptime is a time, so it is likely stored in a time_t. This means it
would normally be subject to the same year 2038 Unix Epoch wrap provided
the system used 32-bit time_t values.

However, it is stored as a relative time, so the that the beginning of
this particular epoch was when the machine was started up. This means it
wouldn't be expected to wrap until (2038 - 1970 =) 68 years from when
you started it up. And again, this is only if it is a 32-bit machine
with a 32-bit time_t.

Cheers,
Steven Black

On Mon, Nov 30, 2009 at 01:49:10PM +0000, Mark Krenz wrote:
>
> # w
> 08:48:11 up 1028 days, 0 min, 6 users, load average: 0.03, 0.19, 0.17
>
> I was wondering if the days would wrap around at 1024 days. I guess
> they don't.
>
>
> --
> Mark Krenz
> Bloomington Linux Users Group
> http://www.bloomingtonlinux.org/

_______________________________________________
BLUG mailing list
BLUG@linuxfan.com
http://mailman.cs.indiana.edu/mailman/listinfo/blug

No comments: