Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/top/machine According to the previous commit the new...



details:   https://anonhg.NetBSD.org/src/rev/216a75e1ee40
branches:  trunk
changeset: 474861:216a75e1ee40
user:      veego <veego%NetBSD.org@localhost>
date:      Fri Jul 23 09:01:09 1999 +0000

description:
According to the previous commit the new process state should be SDEAD and
not SDYING, so s/SDYING/SDEAD/.
And add the new element "dying" to the state_abbrev array.
XXX Is is correct to have two elements with the number 3 in sorted_state?

diffstat:

 usr.bin/top/machine/m_netbsd13.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 2b3d1f63d913 -r 216a75e1ee40 usr.bin/top/machine/m_netbsd13.c
--- a/usr.bin/top/machine/m_netbsd13.c  Fri Jul 23 08:56:13 1999 +0000
+++ b/usr.bin/top/machine/m_netbsd13.c  Fri Jul 23 09:01:09 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: m_netbsd13.c,v 1.6 1999/07/22 18:23:01 thorpej Exp $   */
+/*     $NetBSD: m_netbsd13.c,v 1.7 1999/07/23 09:01:09 veego Exp $     */
 
 /*
  * top - a top users display for Unix
@@ -34,7 +34,7 @@
  *             matthew green <mrg%eterna.com.au@localhost>
  *
  *
- * $Id: m_netbsd13.c,v 1.6 1999/07/22 18:23:01 thorpej Exp $
+ * $Id: m_netbsd13.c,v 1.7 1999/07/23 09:01:09 veego Exp $
  */
 #define UVM
 
@@ -139,7 +139,7 @@
 
 char *state_abbrev[] =
 {
-    "", "start", "run\0\0\0", "sleep", "stop", "zomb"
+    "", "start", "run\0\0\0", "sleep", "stop", "dying", "zomb"
 };
 
 
@@ -479,7 +479,7 @@
        {
            total_procs++;
            process_states[(unsigned char) PP(pp, p_stat)]++;
-           if ((PP(pp, p_stat) != SZOMB && PP(pp, p_stat) != SDYING) &&
+           if ((PP(pp, p_stat) != SZOMB && PP(pp, p_stat) != SDEAD) &&
                (show_idle || (PP(pp, p_pctcpu) != 0) || 
                 (PP(pp, p_stat) == SRUN)) &&
                (!show_uid || EP(pp, e_pcred.p_ruid) == (uid_t)sel->uid))
@@ -694,7 +694,7 @@
     4, /* "run"        SRUN    */
     3, /* "sleep"      SSLEEP  */
     3, /* "stop"       SSTOP   */
-    2, /* "dying"      SDYING  */
+    2, /* "dying"      SDEAD   */
     1, /* "zomb"       SZOMB   */
 };
 



Home | Main Index | Thread Index | Old Index