From 7ab1eb76d7c93ba913476e0094313ee19e5e2546 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 17 Jan 2010 08:24:21 +0000 Subject: [PATCH] disk stats parser update --- parse_disk_log.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/parse_disk_log.py b/parse_disk_log.py index b3d36432c..f23f169c5 100755 --- a/parse_disk_log.py +++ b/parse_disk_log.py @@ -27,7 +27,7 @@ throughput_keys = ['write', 'read'] if len(sys.argv) > 2: quantization = long(sys.argv[2]) * 1000000 else: - quantization = 500000 + quantization = 1000000 out = open('disk_io.dat', 'wb') out2 = open('disk_throughput.dat', 'wb') @@ -90,19 +90,19 @@ out = open('disk_io.gnuplot', 'wb') print >>out, "set term png size 1200,700" print >>out, 'set output "disk_throughput.png"' -print >>out, 'set title "disk throughput per %f second(s)"' % (quantization / 1000000.f) +print >>out, 'set title "disk throughput per %f second(s)"' % (quantization / float(1000000)) print >>out, 'set ylabel "throughput (kB/s)"' print >>out, 'plot', i = 0 for k in throughput_keys: - print >>out, ' "disk_throughput.dat" using 1:%d title "%s" with lines,' % (i + 1, throughput_keys[i]), + print >>out, ' "disk_throughput.dat" using 1:%d title "%s" with steps,' % (i + 2, throughput_keys[i]), i = i + 1 print >>out, 'x=0' print >>out, 'set output "disk_io.png"' print >>out, 'set ylabel "utilization (%)"' print >>out, 'set xrange [0:*]' -print >>out, 'set title "disk io utilization per %f second(s)"' % (quantization / 1000000.f) +print >>out, 'set title "disk io utilization per %f second(s)"' % (quantization / float(1000000)) print >>out, "set key box" print >>out, "set style data histogram" print >>out, "set style histogram rowstacked"