fix: small fix
This commit is contained in:
parent
47ddb139ce
commit
bbb7c29f4e
|
@ -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%??}"
|
||||
|
||||
|
|
Loading…
Reference in New Issue