fix: fix small problem
This commit is contained in:
parent
6e698b5ce0
commit
d3848be679
|
@ -26,9 +26,10 @@ get_mem_usage() {
|
|||
}
|
||||
|
||||
|
||||
loop_cnt=0
|
||||
|
||||
while true; do
|
||||
|
||||
for i in {1..1500}
|
||||
do
|
||||
device_mem_usage=""
|
||||
for ((i=0; i<device_cnt; i++)); do
|
||||
mem_usage=$(get_mem_usage ${chip_id_arr_from_info[i]} ${i})
|
||||
|
@ -52,10 +53,4 @@ while true; do
|
|||
if [ "$print_to_screen" -eq "1" ]; then
|
||||
echo "$json"
|
||||
fi
|
||||
|
||||
loop_cnt+=1
|
||||
if [ "$loop_cnt" -eq "1500" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue