]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
irqtop: don't print header for --once
authorKarel Zak <kzak@redhat.com>
Wed, 4 Mar 2020 13:51:12 +0000 (14:51 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 4 Mar 2020 13:51:12 +0000 (14:51 +0100)
We don't use any extra header for lsblk, lsmem, ... so don't make it
different.

Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/irqtop.c

index e678f90666e046f0764e40a518f7f4cc2f0b0112..5bdac92f6a2de451d3fea90ba71bcbe0e5a9eda3 100644 (file)
@@ -508,10 +508,9 @@ static int update_screen(struct irqtop_ctl *const ctl)
        }
        free(result);
 
-       /* header */
-       if (!ctl->run_once)
+       /* header in interactive mode */
+       if (!ctl->run_once) {
                move(0, 0);
-       if (!ctl->json) {
                now = time(NULL);
                strtime_iso(&now, ISO_TIMESTAMP, timestr, sizeof(timestr));
                print_line(ctl, _("irqtop | total: %ld delta: %ld | %s | %s\n\n"),