Possible cause of duplicate entries is that uptimed on linux takes
bootid from "btime" line in /proc/stat and uses that value to
identify entries.  If I understand correctly, this value is
essentially a difference between CLOCK_REALTIME and CLOCK_BOOTTIME.
It's neither constant nor a good estimate of actual time of a system
boot.  It changes with clock adjustments and during leap second.

On my system which has an uptime of 194 days and is running ntpd,
the difference between the value currently shown in /proc/stat and
the one recorded in utmp is 266 seconds.  Of course, 194 days ago
they were the same and therefore now uprecords and uptimed believe
system must have been rebooted.

-k


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to