Skip to content

Commit

Permalink
allow all days
Browse files Browse the repository at this point in the history
  • Loading branch information
ipitio committed Jan 30, 2024
1 parent d257c07 commit 494467a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions advanced/Scripts/webpage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -616,8 +616,8 @@ SpeedtestMode() {
}

UpdateSpeedTestRange() {
if [[ "${args[2]}" =~ ^[0-9]+$ ]]; then
if [[ "${args[2]}" -ge 0 ]]; then
if [[ "${args[2]}" =~ ^-?[0-9]+$ ]]; then
if [[ "${args[2]}" -ge -1 ]]; then
addOrEditKeyValPair "${setupVars}" "SPEEDTEST_CHART_DAYS" "${args[2]}"
fi
fi
Expand Down

0 comments on commit 494467a

Please sign in to comment.