From 945ffef2b5e8c03b2fd5b7e4f57904be620f843c Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Wed, 14 Oct 2009 23:09:30 +0000 Subject: [PATCH] small tweak to logic of partitions --- inxi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inxi b/inxi index 4f784ea..32df400 100755 --- a/inxi +++ b/inxi @@ -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 )