Commit 92a58115 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

Comment change.

parent 294500f2
...@@ -124,7 +124,13 @@ get_boot_time () ...@@ -124,7 +124,13 @@ get_boot_time ()
EMACS_GET_TIME (time_before); EMACS_GET_TIME (time_before);
/* Try calculating the last boot time /* 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) while ((fd = open ("/proc/uptime", O_RDONLY)) >= 0)
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment