From: Julian Taylor Date: Wed, 16 Sep 2015 13:22:53 +0000 (+0200) Subject: sagraph2: fix MB/s units and help typo X-Git-Tag: v11.1.7~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c95fb7a40bdc4a8cd67524761bdd6ba2c8e65395;p=sysstat sagraph2: fix MB/s units and help typo bread/s returns blocks so assuming 512bytes per block: MB = bread * 512 / 1024 / 1024 = bread / 2 / 1024 not MB = bread * 2 / 1024 --- diff --git a/contrib/sargraph/sargraph2 b/contrib/sargraph/sargraph2 index 215ec8d..7eaa5a8 100755 --- a/contrib/sargraph/sargraph2 +++ b/contrib/sargraph/sargraph2 @@ -38,7 +38,7 @@ To plot CPU for today no arguments are needed: To plot MEM for 20150330: sargraph2 --type mem --sa-file /var/log/sa/sa20150330.gz To plot I/O for 20150330 to a PNG file: - sargraph2 --type mem --sa-file /var/log/sa/sa20150330.gz --output io.png + sargraph2 --type io --sa-file /var/log/sa/sa20150330.gz --output io.png " } @@ -221,8 +221,8 @@ set y2tics set timefmt "%Y-%m-%d %H:%M:%S" set datafile separator ";" plot \ - "$2" using 3:((\$8+\$7)*2/1024) title "rMB/s" with filledcurves x1 linecolor rgb "dark-green", \ - "$2" using 3:((\$8)*2/1024) title "wMB/s" with filledcurves x1 linecolor rgb "dark-red", \ + "$2" using 3:((\$8+\$7)/2/1024) title "rMB/s" with filledcurves x1 linecolor rgb "dark-green", \ + "$2" using 3:((\$8)/2/1024) title "wMB/s" with filledcurves x1 linecolor rgb "dark-red", \ \ "$2" using 3:(\$4) title "rIOPS" with lines linecolor rgb "light-green" linewidth 2 axes x1y2, \ "$2" using 3:(\$6) title "wIOPS" with lines linecolor rgb "light-red" linewidth 2 axes x1y2