From 5904c7604a083f5927c99d96c40c743cc6a3692b Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Fri, 9 Jan 2009 02:37:37 +0000 Subject: [PATCH] better debugging output --- inxi | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/inxi b/inxi index a64cfa1..0a09562 100755 --- a/inxi +++ b/inxi @@ -1,7 +1,7 @@ #!/bin/bash ######################################################################## #### Script Name: inxi -#### version: 0.9.3-b1-t3 +#### version: 0.9.3-b1-t4 #### Date: January 8, 2009 ######################################################################## #### SPECIAL THANKS @@ -1881,17 +1881,24 @@ get_hdd_data_basic() getline } if ( $4 ~ /.*\%/ ) { + print "b: " $1 "used: " $2 "full: " $1 used += $2 + full += $1 } else if ( $5 ~ /.*\%/ ) { + print "a: " $1 "used: " $3 "full: " $2 used += $3 + full += $2 } else { next } } END { - print used + print "used : " used + print "full : " full + percent = used/full + print "percent : " percent }' ) else hdd_used=$( df | gawk '