diff --git a/inxi b/inxi index 8497686..689587d 100755 --- a/inxi +++ b/inxi @@ -3056,7 +3056,7 @@ local sample=" tempUnit="°" $4 } } - /^temp1:/ { + /^temp1:/ && ! $2 ~ /^-/ { tempWorking=gensub( /\+(.+)/, "\\1", 1, $2 ) if ( temp1 == "" || tempWorking > 0 ) { temp1=tempWorking @@ -3065,7 +3065,7 @@ local sample=" tempUnit="°" $3 } } - /^temp2:/ { + /^temp2:/ && ! $2 ~ /^-/ { # add to array if array index does not exist OR if number is > 0 tempWorking=gensub( /\+(.+)/, "\\1", 1, $2 ) if ( temp2 == "" || tempWorking > 0 ) {