From 773d47f6b23a2294baaf577f5cb783338232008c Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 2 Jun 2012 14:01:07 -0700 Subject: [PATCH] * sysdep.c (system_process_attributes): Improve comment. --- src/ChangeLog | 4 ++++ src/sysdep.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index ed808a39742..b90db0b7fa9 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2012-06-02 Paul Eggert + + * sysdep.c (system_process_attributes): Improve comment. + 2012-06-02 Stefan Monnier * keyboard.c: Export real-this-command to Elisp. diff --git a/src/sysdep.c b/src/sysdep.c index bf87fa2ff0b..3356582de0c 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -3106,7 +3106,8 @@ system_process_attributes (Lisp_Object pid) attrs = Fcons (Fcons (Qvsize, make_fixnum_or_float (pinfo.pr_size)), attrs); attrs = Fcons (Fcons (Qrss, make_fixnum_or_float (pinfo.pr_rssize)), attrs); - /* pr_pctcpu and pr_pctmem are encoded as a fixed point 16 bit number in [0 ... 1]. */ + /* pr_pctcpu and pr_pctmem are unsigned integers in the + range 0 .. 2**15, representing 0.0 .. 1.0. */ attrs = Fcons (Fcons (Qpcpu, make_float (100.0 / 0x8000 * pinfo.pr_pctcpu)), attrs); attrs = Fcons (Fcons (Qpmem, make_float (100.0 / 0x8000 * pinfo.pr_pctmem)), attrs); -- 2.39.2