]> granicus.if.org Git - sysstat/commitdiff
sadf: Update SVG output for new binary datafile format
authorSebastien GODARD <sysstat@users.noreply.github.com>
Wed, 6 Sep 2017 08:37:47 +0000 (10:37 +0200)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Wed, 6 Sep 2017 08:37:47 +0000 (10:37 +0200)
This is a small fix for I/O and transfer rate SVG graphs.
Structure stats_io members were considered as unsigned long integers
(since they were packed in the structure) but they actually are unsigned
long long integers.

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

index 546764507c1472c5084efaee3e7c59247e68919c..09062fe28b9013c614d5ee20c4237d8694a1baa1 100644 (file)
@@ -1506,7 +1506,7 @@ __print_funct_t svg_print_io_stats(struct activity *a, int curr, int action, str
 
        if (action & F_MAIN) {
                /* Check for min/max values */
-               save_extrema(0, 5, 0, (void *) a->buf[curr], (void *) a->buf[!curr],
+               save_extrema(5, 0, 0, (void *) a->buf[curr], (void *) a->buf[!curr],
                             itv, spmin, spmax, g_fields);
 
                /*