]> git.eshelyaron.com Git - emacs.git/commit
Fix process-attributes time precision on GNU/Linux
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 5 Mar 2022 03:21:38 +0000 (19:21 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 5 Mar 2022 03:29:05 +0000 (19:29 -0800)
commit2fbd48f733426824cb89b958378a52cfb053774c
tree79426b942d4901e0049837f29426ebf299181bcd
parentb19ec1be3c35b0ec231282ab51d0b320e2967052
Fix process-attributes time precision on GNU/Linux

* src/sysdep.c [GNU_LINUX]:
(time_from_jiffies): Simplify by using time-convert.  Change args
and result type.  All uses changed.
(ltime_from_jiffies): Remove; call time_from_jiffies instead.
(put_jiffies): New function.
(get_up_time): Return Lisp_Object not struct timespec.
All uses changed.  Simplify by using time-add.
(system_process_attributes): Simplify by using the above.
This fixes some minor problems where timestamps promised more
precision than was actually available.  When info is not
available (e.g., sysconf fails) do not place it into the alist.
* src/timefns.c (float_time): Now extern.
src/sysdep.c
src/systime.h
src/timefns.c