From 10bc8414b9508d8752f8b56dc9d80d865378e0a1 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Tue, 7 Mar 2017 18:10:05 +0100 Subject: [PATCH] Move FTL querying before clearing the terminal to avoid flashing on Pi B+ --- advanced/Scripts/chronometer.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/advanced/Scripts/chronometer.sh b/advanced/Scripts/chronometer.sh index d5778a73..bd514a80 100755 --- a/advanced/Scripts/chronometer.sh +++ b/advanced/Scripts/chronometer.sh @@ -55,6 +55,8 @@ get_summary_data() { normalChrono() { for (( ; ; )); do + get_summary_data + domain=$(GetFTLData recentBlocked) clear # Displays a colorful Pi-hole logo echo " ___ _ _ _" @@ -72,7 +74,6 @@ normalChrono() { echo "Recently blocked:" echo " $domain" - get_summary_data echo "Blocking: ${domains_being_blocked}" echo "Queries: ${dns_queries_today}" echo "Pi-holed: ${ads_blocked_today} (${ads_percentage_today}%)"