1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-11-18 06:08:21 +00:00

Fix chronometer refresh incorrectly reading the long argument sleep time

`-r` worked, but `--refresh` did not.

Fixes #2703

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
This commit is contained in:
Mcat12 2019-04-14 13:03:25 -07:00
parent cae61614f4
commit 422680ee9f
No known key found for this signature in database
GPG Key ID: ABB8FC9789AF524D

View File

@ -463,8 +463,7 @@ chronoFunc() {
# Get refresh number
if [[ "$*" == *"-r"* ]]; then
num="$*"
num="${num/*-r /}"
num="${num/ */}"
num="${num/*-r* /}"
num_str="Refresh set for every $num seconds"
else
num_str=""