From 122badbbf1be511355c171f13b51532e8fbc1960 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Fri, 9 Jan 2009 02:51:28 +0000 Subject: [PATCH] final debugger tester for katt --- inxi | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/inxi b/inxi index 0a09562..e2d8817 100755 --- a/inxi +++ b/inxi @@ -1,7 +1,7 @@ #!/bin/bash ######################################################################## #### Script Name: inxi -#### version: 0.9.3-b1-t4 +#### version: 0.9.3-b1-t5 #### Date: January 8, 2009 ######################################################################## #### SPECIAL THANKS @@ -1881,12 +1881,12 @@ get_hdd_data_basic() getline } if ( $4 ~ /.*\%/ ) { - print "b: " $1 "used: " $2 "full: " $1 + print "b: " $1 " used: " $2 " full: " $1 used += $2 full += $1 } else if ( $5 ~ /.*\%/ ) { - print "a: " $1 "used: " $3 "full: " $2 + print "a: " $1 " used: " $3 " full: " $2 used += $3 full += $2 } @@ -1895,7 +1895,10 @@ get_hdd_data_basic() } } END { + print "Remember, this is only for your mounted stuff in df!!" + used = used*1024/1000**3 print "used : " used + full = full*1024/1000**3 print "full : " full percent = used/full print "percent : " percent