From: Bill Davidsen <davidsen@tmr.com>
To: Jan Engelhardt <jengelh@linux01.gwdg.de>
Cc: Willy Tarreau <willy@w.ods.org>, Rumi Szabolcs <rumi_ml@rtfm.hu>,
linux-kernel@vger.kernel.org
Subject: Re: 2.4.x kernel uptime counter problem
Date: Fri, 20 Jan 2006 10:18:24 -0500 [thread overview]
Message-ID: <43D0FF40.9060305@tmr.com> (raw)
In-Reply-To: <Pine.LNX.4.61.0601201513360.22940@yvahk01.tjqt.qr>
Jan Engelhardt wrote:
>>>>You can use:
>>>>last -xf /var/run/utmp runlevel
>>>>
>>>>to get true uptime in this instance.
>
>
> 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.
--
-bill davidsen (davidsen@tmr.com)
"The secret to procrastination is to put things off until the
last possible moment - but no longer" -me
next prev parent reply other threads:[~2006-01-20 15:17 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-19 10:08 2.4.x kernel uptime counter problem Rumi Szabolcs
2006-01-19 9:29 ` Nick
2006-01-19 20:18 ` Willy Tarreau
2006-01-19 20:22 ` Nick Warne
2006-01-19 20:27 ` Willy Tarreau
2006-01-20 14:15 ` Jan Engelhardt
2006-01-20 15:18 ` Bill Davidsen [this message]
2006-01-20 16:32 ` Jan Engelhardt
2006-01-21 13:35 ` Bill Davidsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=43D0FF40.9060305@tmr.com \
--to=davidsen@tmr.com \
--cc=jengelh@linux01.gwdg.de \
--cc=linux-kernel@vger.kernel.org \
--cc=rumi_ml@rtfm.hu \
--cc=willy@w.ods.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.