----- Original Message ----- 
From: "Mark Quitoriano" <[EMAIL PROTECTED]>
To: "Philippine Linux Users Group Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, November 18, 2004 12:30 PM
Subject: [plug] linux uptime


> how can i change the uptime in linux?

why do you want to change it?

> i know there's a cheat that you
> can put 500 days uptime in linux?

in linux:

uptime = jiffies / HZ

where jiffies is an unsigned 32 bit variable and HZ (hertz) default value is
100...

the maximum days for uptime is:

uptime = (2^32 / 100) / 86400 seconds per day = 497.1027 days

in order for you to reach greater than 500 days uptime.. you either:

1. change jiffies type from unsigned 32 bit to unsigned 64 bit or
2. change the HZ lower than 99.42 ( 2^32 / (500 * 86400) )

by default, you cant manipulate the uptime value of linux unless otherwise
you hack your kernel to support it...

fooler.


--
Philippine Linux Users' Group (PLUG) Mailing List
[EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
Official Website: http://plug.linux.org.ph
Searchable Archives: http://marc.free.net.ph
.
To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
.
Are you a Linux newbie? To join the newbie list, go to
http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie

Reply via email to