]> granicus.if.org Git - sysstat/commitdiff
iostat: Remove extra line between two samples
authorSebastien GODARD <sysstat@users.noreply.github.com>
Sun, 18 Nov 2018 10:38:41 +0000 (11:38 +0100)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Sun, 18 Nov 2018 10:38:41 +0000 (11:38 +0100)
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
iostat.c

index 537deb1dbef9c8e4a155a7a13dd0bfbef138e570..e0bc348b370b93140ff2f1c48a8234d8eaa62ff4 100644 (file)
--- a/iostat.c
+++ b/iostat.c
@@ -1774,7 +1774,7 @@ void write_stats(int curr, struct tm *rectime)
                                        }
                                }
                        }
-                       if (h) {
+                       if ((h > 0) && (h < hh)) {
                                printf("\n");
                        }
                }