small tweak to logic of partitions

This commit is contained in:
inxi-svn 2009-10-14 23:09:30 +00:00
parent 1a2b56ac3e
commit 945ffef2b5

4
inxi
View file

@ -2898,10 +2898,10 @@ get_partition_data()
}
# this has to be nulled for every iteration so it does not retain value from last iteration
devBase=""
# this is required because below we are subtracting from NF, so it has to be > 4
# this is required because below we are subtracting from NF, so it has to be > 5
# the real issue is long file system names that force the wrap of df output: //fileserver/main
# but we still need to handle more dynamically long space containing file names, but later.
( NF < 5 ) && ( $0 !~ /[0-9]+\%/ ) {
( NF < 6 ) && ( $0 !~ /[0-9]+\%/ ) {
# set the dev location here for cases of wrapped output
if ( NF == 1 ){
devBase=gensub( /^(\/dev\/)(.+)$/, "\\2", 1, $1 )