fix: small fix

This commit is contained in:
wql 2024-09-13 16:24:03 +08:00
parent 28e0c88327
commit 4061a7899d
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ npu_id_arr=(2 3 5 6)
get_power_dissipation() {
local npu_id="$1"
power_dissipation=$(npu-smi info -t power -i ${npu_id} | grep 'Power Dissipation(W)' | awk '{print $4}')
power_dissipation=$(npu-smi info -t power -i ${npu_id} | grep "Power Dissipation(W)" | awk '{print $4}')
echo "${power_dissipation}"
}