From 07fc2644a237187dd4c5680e88f4adadbf533603 Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Wed, 12 Aug 2015 12:06:23 -0600 Subject: Initial commit of the working files --- segments/ifstat_sys.sh | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 segments/ifstat_sys.sh (limited to 'segments/ifstat_sys.sh') diff --git a/segments/ifstat_sys.sh b/segments/ifstat_sys.sh new file mode 100755 index 0000000..1059dc4 --- /dev/null +++ b/segments/ifstat_sys.sh @@ -0,0 +1,28 @@ +# Show if stats by sampling /sys/. +# Originally stolen from http://unix.stackexchange.com/questions/41346/upload-download-speed-in-tmux-status-line + +run_segment() { + sleeptime="0.5" + iface="eth0" + RXB=$(