Comment change.
This commit is contained in:
parent
294500f232
commit
92a581153d
1 changed files with 7 additions and 1 deletions
|
@ -124,7 +124,13 @@ get_boot_time ()
|
|||
EMACS_GET_TIME (time_before);
|
||||
|
||||
/* Try calculating the last boot time
|
||||
from the uptime as obtained from /proc/uptime. */
|
||||
from the uptime as obtained from /proc/uptime.
|
||||
|
||||
This has a disadvantage in that if the system time has been
|
||||
changed (say to correct the clock),
|
||||
then current_time - uptime != wtmp_boot_time.
|
||||
However, the speedup from doing this can be so great
|
||||
that I think it is worth that problem occasionally. */
|
||||
|
||||
while ((fd = open ("/proc/uptime", O_RDONLY)) >= 0)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue