diff --git a/Pihole/Pihole.php b/Pihole/Pihole.php index fb74979b5f..f30008ba4f 100644 --- a/Pihole/Pihole.php +++ b/Pihole/Pihole.php @@ -48,12 +48,6 @@ public function livestats() $details->ads_percentage_today, 1 ); - $data["gravity"] = number_format( - $details->domains_being_blocked, - 0, - '', - '.' - ); $status = "active"; } @@ -64,7 +58,6 @@ public function livestats() $data["ads_blocked"] = $results["queries"]; $data["ads_percentage"] = $results["percent"]; - $data["gravity"] = $results["gravity"]; $status = "active"; } @@ -151,15 +144,13 @@ public function getInfo() $message = $auth->session->message; $queriesblocked = $datasummary->queries->blocked; $percentblocked = round($datasummary->queries->percent_blocked, 2); - $gravity = number_format($datasummary->gravity->domains_being_blocked, 0, '', '.'); $data = [ 'valid' => $valid, 'validity' => $validity, 'message' => $message, 'queries' => $queriesblocked, - 'percent' => $percentblocked, - 'gravity' => $gravity + 'percent' => $percentblocked ]; return $data; } diff --git a/Pihole/livestats.blade.php b/Pihole/livestats.blade.php index f3d64d59a7..d905f0b4fe 100644 --- a/Pihole/livestats.blade.php +++ b/Pihole/livestats.blade.php @@ -7,8 +7,4 @@ Percent
Blocked
{!! $ads_percentage !!} -
  • - Domains
    Blocked
    - {!! $gravity !!} -