pihole: label blocked angepasst

This commit is contained in:
Michael Grote 2021-10-02 09:58:04 +02:00
parent a77b262ef3
commit 2880cc98fd

View file

@ -17,16 +17,16 @@ stats=$(echo $apicall | sed 's/[{}"]//g' | tr "," "\n")
case $1 in case $1 in
config) config)
echo "graph_title Pihole today ads" echo "graph_title Pihole blocked ads"
echo "graph_vlabel %" echo "graph_vlabel %"
echo "graph_category pihole" echo "graph_category pihole"
echo "graph_info This graph shows the Pihole percentage of todays ads." echo "graph_info This graph shows the Pihole percentage of blocked ads."
for stat in $stats for stat in $stats
do do
uid=$(echo $stat | sed 's/:.*//') uid=$(echo $stat | sed 's/:.*//')
if [ $uid = "ads_percentage_today" ]; then if [ $uid = "ads_percentage_today" ]; then
echo "$uid.label today ads %" echo "$uid.label blocked ads"
fi fi
done done