final debugger tester for katt

This commit is contained in:
inxi-svn 2009-01-09 02:51:28 +00:00
parent 5904c7604a
commit 122badbbf1

9
inxi
View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
######################################################################## ########################################################################
#### Script Name: inxi #### Script Name: inxi
#### version: 0.9.3-b1-t4 #### version: 0.9.3-b1-t5
#### Date: January 8, 2009 #### Date: January 8, 2009
######################################################################## ########################################################################
#### SPECIAL THANKS #### SPECIAL THANKS
@ -1881,12 +1881,12 @@ get_hdd_data_basic()
getline getline
} }
if ( $4 ~ /.*\%/ ) { if ( $4 ~ /.*\%/ ) {
print "b: " $1 "used: " $2 "full: " $1 print "b: " $1 " used: " $2 " full: " $1
used += $2 used += $2
full += $1 full += $1
} }
else if ( $5 ~ /.*\%/ ) { else if ( $5 ~ /.*\%/ ) {
print "a: " $1 "used: " $3 "full: " $2 print "a: " $1 " used: " $3 " full: " $2
used += $3 used += $3
full += $2 full += $2
} }
@ -1895,7 +1895,10 @@ get_hdd_data_basic()
} }
} }
END { END {
print "Remember, this is only for your mounted stuff in df!!"
used = used*1024/1000**3
print "used : " used print "used : " used
full = full*1024/1000**3
print "full : " full print "full : " full
percent = used/full percent = used/full
print "percent : " percent print "percent : " percent