Re: 2.4.x kernel uptime counter problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jan Engelhardt wrote:

Or use some dedicated programs, IIRC there is a "uprecords" program
(http://podgorny.cz/moin/Uptimed). Does require no reboot and should work
right away.
I never understood uptime anyway, the boot time, to the second, is available in
/proc/stat (btime), and it isn't that hard to turn it into whatever format you
find human readable. I have a perl script which presents uptime as fractional
days, days, hours, min, sec, and/or boot time. Took me about two minutes to
write.

uptime or uptimed/uprecords? (That's two different things.)
The "uptime" commands is the same as "w | head -n1" (which reads /proc/uptime) and therefore suffers from jiffies wrap.


I understand why it has this limitation, the question is why it was written to have it, when correct function is easily possible. I understand extra effort to get it right, but not to get it wrong...

--
bill davidsen <[email protected]>
 CTO TMR Associates, Inc
 Doing interesting things with small computers since 1979

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux