default sort
authoralbert <>
Fri, 11 Oct 2002 23:30:29 +0000 (23:30 +0000)
committeralbert <>
Fri, 11 Oct 2002 23:30:29 +0000 (23:30 +0000)
top.c
top.h

diff --git a/top.c b/top.c
index 5a997f26a2a3dcf4adeb1c7d26fc39092d461ed0..4c27b16a58e5d2587cf0e9aa501c9949261ed6ab 100644 (file)
--- a/top.c
+++ b/top.c
@@ -1617,9 +1617,9 @@ static void windows_stage1 (void)
       const int   sort;
       const int   clrs[4];      /* summ, msgs, heads, task */
    } wtab[] = {
-      { "Def", DEF_FIELDS, P_PID,
+      { "Def", DEF_FIELDS, P_CPU,
          { COLOR_RED, COLOR_RED, COLOR_YELLOW, COLOR_RED } },
-      { "Job", JOB_FIELDS, P_TM2,
+      { "Job", JOB_FIELDS, P_PID,
          { COLOR_CYAN, COLOR_CYAN, COLOR_WHITE, COLOR_CYAN } },
       { "Mem", MEM_FIELDS, P_MEM,
          { COLOR_MAGENTA, COLOR_MAGENTA, COLOR_BLUE, COLOR_MAGENTA } },
diff --git a/top.h b/top.h
index a85ec102403669a527e26d5157ef517e77b494be..8a1e90cdaaac74b738f4c9c4613a87fc007e27d1 100644 (file)
--- a/top.h
+++ b/top.h
@@ -297,7 +297,7 @@ typedef struct win {
 
         /* These are the possible fscanf formats used in /proc/stat
            reads during history processing.
-           ( 5th number added in anticipation of kernel change ) */
+           ( 5th number only for Linux 2.5.41 and above ) */
 #define CPU_FMTS_JUST1  "cpu %Lu %Lu %Lu %Lu %Lu"
 #ifdef PRETEND4CPUS
 #define CPU_FMTS_MULTI CPU_FMTS_JUST1