mirror of
https://github.com/openNDS/openNDS.git
synced 2026-05-04 03:01:32 -04:00
client_params: report "Unlimited" when "null" received from ndsctl json
Signed-off-by: Rob White <rob@blue-wave.net>
This commit is contained in:
@@ -69,6 +69,11 @@ parse_parameters() {
|
||||
upload_session_avg download_session_avg
|
||||
do
|
||||
val=$(echo "$param_str" | grep "$param" | awk -F'"' '{printf "%s", $4}')
|
||||
|
||||
if [ "$val" = "null" ]; then
|
||||
val="Unlimited"
|
||||
fi
|
||||
|
||||
eval $param=$(echo "\"$val\"")
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user