diff --git a/nicsensor.sh b/nicsensor.sh index 91844f2..198473c 100755 --- a/nicsensor.sh +++ b/nicsensor.sh @@ -252,10 +252,10 @@ parse_nic_slot(){ esac if [ $nic_type = "ocp" ];then - slot_number=$(echo $nic_slot | cut -c 4) + slot_number=$(echo $nic_slot | cut -b 4-) else if [ $fullname -eq 1 ];then - slot_number=$(echo $nic_slot | cut -c 5) + slot_number=$(echo $nic_slot | cut -b 5-) else slot_number=$nic_slot fi