fix: small fix

This commit is contained in:
wql 2024-09-11 11:17:39 +08:00
parent 47ddb139ce
commit bbb7c29f4e
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ while true; do
device_mem_usage=""
for ((i=0; i<device_cnt; i++)); do
mem_usage=$(get_mem_usage ${chip_id_arr_from_info[i]} ${i})
device_mem_usage="${device_mem_usage}{\"npu_id\": ${npu_id_arr_from_info[i]}, \"chip_id\": ${chip_id_arr_from_info[i]}, "device_id": ${i}, "mem_usage": ${mem_usage}}, "
device_mem_usage="${device_mem_usage}{\"npu_id\": ${npu_id_arr_from_info[i]}, \"chip_id\": ${chip_id_arr_from_info[i]}, \"device_id\": ${i}, \"mem_usage\": ${mem_usage}}, "
done
device_mem_usage="${device_mem_usage%??}"