Commit ee80d7ba authored by Azat Khuziyakhmetov's avatar Azat Khuziyakhmetov
Browse files

updated nvidia monitoring script

parent 326e1a6f
......@@ -52,7 +52,7 @@ while read -r line; do
declare -A gpu_vals
while read -r val; do
gpu_vals[${gpu_param_idx[$cnt]}]=`[ "$val" == "[Not Supported]" ] && echo -1 || echo $val`
gpu_vals[${gpu_param_idx[$cnt]}]=`[ "$val" == "[Not Supported]" -o "$val" == "[Unknown Error]" -o "$val" == "[N/A]" ] && echo -1 || echo $val`
cnt=$((cnt+1))
done <<< "$(echo $line | tr "," "\n")";
......@@ -68,7 +68,7 @@ while read -r line; do
declare -A proc_vals
while read -r val; do
proc_vals[${proc_param_idx[$cnt]}]=`[ "$val" == "[Not Supported]" -o "$val" == "[Unknown Error]" ] && echo -1 || echo $val`
proc_vals[${proc_param_idx[$cnt]}]=`[ "$val" == "[Not Supported]" -o "$val" == "[Unknown Error]" -o "$val" == "[N/A]" ] && echo -1 || echo $val`
cnt=$((cnt+1))
done <<< "$(echo $line | tr "," "\n")";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment