This commit is contained in:
Ville Rantanen
2015-07-13 14:56:08 +03:00
parent 99d090dda9
commit 8aeb5d67fd

View File

@@ -25,7 +25,7 @@ cache=$( filesize $cache )
total=$( filesize $total ) total=$( filesize $total )
echo -n "$used+$cache/$total U:" echo -n "$used+$cache/$total U:"
ps a --format user| grep -v -e root -e USER | sort -u | wc -l | tr -c -d [:digit:] 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 # exit okay
true true