]> granicus.if.org Git - sysstat/commitdiff
sadf: RAW: Fix the place where the NEW tag is printed for FB hosts
authorSebastien GODARD <sysstat@users.noreply.github.com>
Fri, 28 Jun 2019 07:21:30 +0000 (09:21 +0200)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Fri, 28 Jun 2019 07:21:30 +0000 (09:21 +0200)
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
raw_stats.c

index 254227e1ce6ec3427bb8da91f0f5fe847553907b..43b83f9e418efc485870331cdca184ae4f48e14c 100644 (file)
@@ -1567,6 +1567,8 @@ __print_funct_t raw_print_fchost_stats(struct activity *a, char *timestr, int cu
                        while (j != j0);
                }
 
+               printf("%s; %s", timestr, pfield(a->hdr_line, FIRST));
+
                if (!found) {
                        /* This is a newly registered host. Previous stats are zero */
                        sfcp = &sfczero;
@@ -1575,7 +1577,7 @@ __print_funct_t raw_print_fchost_stats(struct activity *a, char *timestr, int cu
                        }
                }
 
-               printf("%s; %s; %s;", timestr, pfield(a->hdr_line, FIRST), sfcc->fchost_name);
+               printf("; %s;", sfcc->fchost_name);
                printf(" %s", pfield(NULL, 0));
                pval((unsigned long long) sfcp->f_rxframes, (unsigned long long) sfcc->f_rxframes);
                printf(" %s", pfield(NULL, 0));