fix: small fix
This commit is contained in:
parent
2f142b86f1
commit
952d75cf5e
|
@ -31,7 +31,7 @@ if [ "$is_test" -eq "1" ]; then
|
|||
sleep_time=10
|
||||
fi
|
||||
|
||||
for ((i=1; i<=cycle_cnt; i++))
|
||||
for ((cnt=1; cnt<=cycle_cnt; cnt++))
|
||||
do
|
||||
device_mem_usage=""
|
||||
for ((i=0; i<device_cnt; i++)); do
|
||||
|
@ -44,8 +44,8 @@ do
|
|||
|
||||
npu_power_dissipation=""
|
||||
for npu_id in "${npu_id_arr[@]}"; do
|
||||
power_dissipation=$(get_power_dissipation ${i})
|
||||
npu_power_dissipation="${npu_power_dissipation}{\"npu_id\": ${i}, \"power_dissipation\": ${power_dissipation}}, "
|
||||
power_dissipation=$(get_power_dissipation ${npu_id})
|
||||
npu_power_dissipation="${npu_power_dissipation}{\"npu_id\": ${npu_id}, \"power_dissipation\": ${power_dissipation}}, "
|
||||
done
|
||||
npu_power_dissipation="${npu_power_dissipation%??}"
|
||||
|
||||
|
|
Loading…
Reference in New Issue