This commit is contained in:
wql 2024-09-13 08:19:43 +00:00
commit 28e0c88327
1 changed files with 3 additions and 8 deletions

View File

@ -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