]> granicus.if.org Git - sysstat/commitdiff
sadf: Don't test for nr2 field value to display it
authorSebastien GODARD <sysstat@users.noreply.github.com>
Sat, 7 Oct 2017 14:54:12 +0000 (16:54 +0200)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Sat, 7 Oct 2017 14:58:20 +0000 (16:58 +0200)
Testing for AO_MATRIX flag should be just enough for sadf -H to display
nr2 value.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
sadf_misc.c

index 840e2036156fe56b2c391ebaf5f6f436fd3a06ac..6a37a88ef94c8176d655c3510f91eefa929167af 100644 (file)
@@ -880,7 +880,7 @@ __printf_funct_t print_hdr_header(void *parm, int action, char *dfile,
                        p = get_activity_position(act, id_seq[i], EXIT_IF_NOT_FOUND);
 
                        printf("%02d: %s\t(x%d)", act[p]->id, act[p]->name, act[p]->nr);
-                       if (IS_MATRIX(act[p]->options) || (act[p]->nr2 > 1)) {
+                       if (IS_MATRIX(act[p]->options)) {
                                printf("\t(x%d)", act[p]->nr2);
                        }
                        if (act[p]->magic == ACTIVITY_MAGIC_UNKNOWN) {