mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
final debugger tester for katt
This commit is contained in:
parent
5904c7604a
commit
122badbbf1
9
inxi
9
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
|
||||
|
|
Loading…
Reference in a new issue