From 191d129672dacdc3ae3ac165cd1f2a877529d0ad Mon Sep 17 00:00:00 2001 From: Chuck Lever Date: Tue, 15 Jul 2008 11:56:13 -0400 Subject: [PATCH] Updated both the mountstats and nfs-iostat scripts to used the proper abbreviation for kilobytes per second (kB/s). Signed-off-by: Chuck Lever Signed-off-by: Steve Dickson --- tools/mountstats/mountstats.py | 8 ++++---- tools/nfs-iostat/nfs-iostat.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/mountstats/mountstats.py b/tools/mountstats/mountstats.py index f55595e..c475c9e 100644 --- a/tools/mountstats/mountstats.py +++ b/tools/mountstats/mountstats.py @@ -317,7 +317,7 @@ class DeviceData: else: print '\t0.00' - # reads: ops/s, Kb/s, avg rtt, and avg exe + # reads: ops/s, kB/s, avg rtt, and avg exe # XXX: include avg xfer size and retransmits? read_rpc_stats = self.__rpc_data['READ'] ops = float(read_rpc_stats[0]) @@ -325,7 +325,7 @@ class DeviceData: rtt = float(read_rpc_stats[6]) exe = float(read_rpc_stats[7]) - print '\treads:\tops/s\t\tKb/s\t\tavg RTT (ms)\tavg exe (ms)' + print '\treads:\tops/s\t\tkB/s\t\tavg RTT (ms)\tavg exe (ms)' print '\t\t%.2f' % (ops / sample_time), print '\t\t%.2f' % (kilobytes / sample_time), if ops != 0: @@ -335,7 +335,7 @@ class DeviceData: print '\t\t0.00', print '\t\t0.00' - # writes: ops/s, Kb/s, avg rtt, and avg exe + # writes: ops/s, kB/s, avg rtt, and avg exe # XXX: include avg xfer size and retransmits? write_rpc_stats = self.__rpc_data['WRITE'] ops = float(write_rpc_stats[0]) @@ -343,7 +343,7 @@ class DeviceData: rtt = float(write_rpc_stats[6]) exe = float(write_rpc_stats[7]) - print '\twrites:\tops/s\t\tKb/s\t\tavg RTT (ms)\tavg exe (ms)' + print '\twrites:\tops/s\t\tkB/s\t\tavg RTT (ms)\tavg exe (ms)' print '\t\t%.2f' % (ops / sample_time), print '\t\t%.2f' % (kilobytes / sample_time), if ops != 0: diff --git a/tools/nfs-iostat/nfs-iostat.py b/tools/nfs-iostat/nfs-iostat.py index 649c1bd..9626d42 100644 --- a/tools/nfs-iostat/nfs-iostat.py +++ b/tools/nfs-iostat/nfs-iostat.py @@ -344,7 +344,7 @@ class DeviceData: op += ':' print '%s' % op.lower().ljust(15), - print ' ops/s\t\t Kb/s\t\t Kb/op\t\tretrans\t\tavg RTT (ms)\tavg exe (ms)' + print ' ops/s\t\t kB/s\t\t kB/op\t\tretrans\t\tavg RTT (ms)\tavg exe (ms)' print '\t\t%7.3f' % (ops / sample_time), print '\t%7.3f' % (kilobytes / sample_time), -- 2.39.2