From 8aeb5d67fd4b66c1f13dcec0d68f01ef162a231d Mon Sep 17 00:00:00 2001 From: Ville Rantanen Date: Mon, 13 Jul 2015 14:56:08 +0300 Subject: [PATCH] posix --- nando-stats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nando-stats b/nando-stats index 6310079..d2b4f00 100755 --- a/nando-stats +++ b/nando-stats @@ -25,7 +25,7 @@ cache=$( filesize $cache ) total=$( filesize $total ) echo -n "$used+$cache/$total U:" ps a --format user| grep -v -e root -e USER | sort -u | wc -l | tr -c -d [:digit:] -printf " R/H:%s/%s" $( df --output=pcent / | tail -n +2 ) $( df --output=pcent /home | tail -n +2 ) +printf " R/H:%s/%s" $( df / | awk '{print $5}' | tail -n +2 ) $( df /home | awk '{print $5}' | tail -n +2 ) # exit okay true