Move FTL querying before clearing the terminal to avoid flashing on Pi B+

This commit is contained in:
DL6ER 2017-03-07 18:10:05 +01:00
parent 4e25e0dc5c
commit 10bc8414b9
No known key found for this signature in database
GPG key ID: 00135ACBD90B28DD

View file

@ -55,6 +55,8 @@ get_summary_data() {
normalChrono() { normalChrono() {
for (( ; ; )); do for (( ; ; )); do
get_summary_data
domain=$(GetFTLData recentBlocked)
clear clear
# Displays a colorful Pi-hole logo # Displays a colorful Pi-hole logo
echo " ___ _ _ _" echo " ___ _ _ _"
@ -72,7 +74,6 @@ normalChrono() {
echo "Recently blocked:" echo "Recently blocked:"
echo " $domain" echo " $domain"
get_summary_data
echo "Blocking: ${domains_being_blocked}" echo "Blocking: ${domains_being_blocked}"
echo "Queries: ${dns_queries_today}" echo "Queries: ${dns_queries_today}"
echo "Pi-holed: ${ads_blocked_today} (${ads_percentage_today}%)" echo "Pi-holed: ${ads_blocked_today} (${ads_percentage_today}%)"