Bug 25270 - uptime resets after aproximately 500 days
Summary: uptime resets after aproximately 500 days
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: kernel
Version: 6.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Michael K. Johnson
QA Contact: Brock Organ
URL: www.hal.si
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-01-30 08:51 UTC by Marko Hrastovec
Modified: 2007-04-18 16:30 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2001-01-30 08:51:45 UTC
Embargoed:


Attachments (Terms of Use)

Description Marko Hrastovec 2001-01-30 08:51:41 UTC
Kernel keeps the number of seconds about uptime. The numbers
can be found in /proc/uptime.

In kernel source uptime variable is declared as long.
(include/linux/kernel.h)

After cca. 500 days the counter resets because of overflow.
Uptime in seconds needs larger number type.

Comment 1 Michael K. Johnson 2001-01-30 21:30:16 UTC
This is by design; uptime has to be atomically updated.  Changing this
gets proposed over and over on linux-kernel, and is repeatedly rejected
for the same reason.


Note You need to log in before you can comment on or make changes to this bug.