From 5d65d6cb27aa435b90f09c2c4e8ee37384a2b34c Mon Sep 17 00:00:00 2001 From: Siraaj Khandkar Date: Sat, 30 Jun 2018 01:11:35 -0400 Subject: [PATCH] Increase net io unit to megabyte --- bin/khatus_show | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/khatus_show b/bin/khatus_show index 4e90c48..d506d3a 100755 --- a/bin/khatus_show +++ b/bin/khatus_show @@ -70,7 +70,7 @@ disk=$( io_net=$( awk ' BEGIN { - bytes_per_unit = 1024 + bytes_per_unit = 1024 * 1024 } NR > 2 { @@ -91,7 +91,7 @@ io_net=$( print curr_read > prev_read_file; print curr_write > prev_write_file; - printf("%s %0.0f▲ %0.0f▼\n", device, diff_write, diff_read); + printf("%s %0.3f▲ %0.3f▼\n", device, diff_write, diff_read); } ' /proc/net/dev ) -- 2.20.1