From: Siraaj Khandkar Date: Sat, 30 Jun 2018 05:11:35 +0000 (-0400) Subject: Increase net io unit to megabyte X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=5d65d6cb27aa435b90f09c2c4e8ee37384a2b34c;p=khatus.git Increase net io unit to megabyte --- 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 )