[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r108462: * sysdep.c (system_process_a
From: |
Paul Eggert |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r108462: * sysdep.c (system_process_attributes): Improve comment. |
Date: |
Sat, 02 Jun 2012 14:01:07 -0700 |
User-agent: |
Bazaar (2.5.0) |
------------------------------------------------------------
revno: 108462
committer: Paul Eggert <address@hidden>
branch nick: trunk
timestamp: Sat 2012-06-02 14:01:07 -0700
message:
* sysdep.c (system_process_attributes): Improve comment.
modified:
src/ChangeLog
src/sysdep.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2012-06-02 19:21:34 +0000
+++ b/src/ChangeLog 2012-06-02 21:01:07 +0000
@@ -1,3 +1,7 @@
+2012-06-02 Paul Eggert <address@hidden>
+
+ * sysdep.c (system_process_attributes): Improve comment.
+
2012-06-02 Stefan Monnier <address@hidden>
* keyboard.c: Export real-this-command to Elisp.
=== modified file 'src/sysdep.c'
--- a/src/sysdep.c 2012-06-02 16:37:54 +0000
+++ b/src/sysdep.c 2012-06-02 21:01:07 +0000
@@ -3106,7 +3106,8 @@
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);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r108462: * sysdep.c (system_process_attributes): Improve comment.,
Paul Eggert <=