]> granicus.if.org Git - procps-ng/commitdiff
top: miscellaneous accumulated tweaks to code/comments
authorJim Warner <james.warner@comcast.net>
Mon, 27 Jul 2015 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@enc.com.au>
Thu, 6 Aug 2015 11:52:11 +0000 (21:52 +1000)
Jeeze, to correct spelling on one single word (incure)
you had to go and align the entire comments paragraph?

[ well, at least there's one other minor code change ]

Signed-off-by: Jim Warner <james.warner@comcast.net>
top/top.c
top/top.h

index f7a659325a32d418f805fc9f691ee96e416fdf19..3c4f3f2c7a4d58e298b7dbc67fca97dc9637e2af 100644 (file)
--- a/top/top.c
+++ b/top/top.c
@@ -1915,7 +1915,7 @@ static void build_headers (void) {
             if (EU_MAXPFLGS <= f) continue;
 #endif
             if (EU_CMD == f && CHKw(w, Show_CMDLIN)) Frames_libflags |= L_CMDLINE;
-            Frames_libflags |= Fieldstab[w->procflgs[i]].lflg;
+            Frames_libflags |= Fieldstab[f].lflg;
             s = scat(s, justify_pad(N_col(f)
                , VARcol(f) ? w->varcolsz : Fieldstab[f].width
                , CHKw(w, Fieldstab[f].align)));
index 28a1a240720441c8c96c4f01d2c424c5138f9d4c..ddf34f13b23308194d7c30dd16a736f30f9d9536 100644 (file)
--- a/top/top.h
+++ b/top/top.h
@@ -255,11 +255,11 @@ typedef struct HST_t {
    int pid;                     // record 'key'
 } HST_t;
 #else
-        /* This structure supports 'history' processing and records the
-           bare minimum of needed information from one frame to the next --
-           we don't calc and save data that goes unused like the old top nor
-           do we incure the overhead of sorting to support a binary search
-           (or worse, a friggin' for loop) when retrieval is necessary! */
+        /* This structure supports 'history' processing and records the bare
+           minimum of needed information from one frame to the next -- we do
+           not calc and save data that goes unused like the old top nor will
+           we incur the additional overhead of sort to support binary search
+           (or worse, a friggin' for loop) when retrievals become necessary! */
 typedef struct HST_t {
    TIC_t tics;                  // last frame's tics count
    unsigned long maj, min;      // last frame's maj/min_flt counts