diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2022-03-04 19:21:38 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2022-03-04 19:29:05 -0800 |
commit | b19ec1be3c35b0ec231282ab51d0b320e2967052 (patch) | |
tree | b9047bb0f4c0eda811c4a8a5f1bc0c3fcd213d80 /src/sysdep.c | |
parent | af742bb3bbf37b844367e27fd598c6b0ae868d05 (diff) | |
download | emacs-b19ec1be3c35b0ec231282ab51d0b320e2967052.tar.gz |
%CPU can exceed 100 on GNU/Linux
* src/sysdep.c (system_process_attributes) [GNU_LINUX]:
CPU usage can exceed 100% on a multicore platform when Emacs is
not entirely single-threaded.
Diffstat (limited to 'src/sysdep.c')
-rw-r--r-- | src/sysdep.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/sysdep.c b/src/sysdep.c index 28d32c77c63..c9101f94818 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -3487,8 +3487,6 @@ system_process_attributes (Lisp_Object pid) attrs = Fcons (Fcons (Qetime, make_lisp_time (telapsed)), attrs); us_time = time_from_jiffies (u_time + s_time, clocks_per_sec); pcpu = timespectod (us_time) / timespectod (telapsed); - if (pcpu > 1.0) - pcpu = 1.0; attrs = Fcons (Fcons (Qpcpu, make_float (100 * pcpu)), attrs); pmem = 4.0 * 100 * rss / procfs_get_total_memory (); if (pmem > 100) |