Skip to content

Commit b512496

Browse files
committed
Merge pull request #207 from jacobsalmela/bugfix/Chronometer
Bugfix for Chronometer
2 parents 0327789 + af982a0 commit b512496

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

advanced/Scripts/chronometer.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ gravity="/etc/pihole/gravity.list"
1515
today=$(date "+%b %e")
1616

1717
function CalcBlockedDomains(){
18+
CheckIPv6
1819
if [ -e "$gravity" ]; then
1920
#Are we IPV6 or IPV4?
2021
if [[ -n $piholeIPv6 ]];then
@@ -66,7 +67,6 @@ function outputJSON(){
6667
CalcblockedToday
6768
CalcPercentBlockedToday
6869

69-
CheckIPv6
7070
CalcBlockedDomains
7171

7272
printf '{"domains_being_blocked":"%s","dns_queries_today":"%s","ads_blocked_today":"%s","ads_percentage_today":"%s"}\n' "$blockedDomainsTotal" "$queriesToday" "$blockedToday" "$percentBlockedToday"

0 commit comments

Comments
 (0)