Fix Pi-hole status in chronometer

Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
Christian König 2022-01-05 21:09:57 +01:00
parent 2ff10fcd0a
commit 81698ef1ed
No known key found for this signature in database
GPG key ID: 4CDA6F249DD2B485

View file

@ -357,7 +357,7 @@ get_sys_stats() {
ram_used="${ram_raw[1]}"
ram_total="${ram_raw[2]}"
if [[ "$(pihole status web 2> /dev/null)" == "1" ]]; then
if [[ "$(pihole status web 2> /dev/null)" -ge "1" ]]; then
ph_status="${COL_LIGHT_GREEN}Active"
else
ph_status="${COL_LIGHT_RED}Offline"