Explorar o código

british deftones be like go get yor noife go get yor noife

lolcat hai 1 semana
pai
achega
bfebf441b8
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      api/v2/graph.php

+ 2 - 1
api/v2/graph.php

@@ -1,6 +1,7 @@
 <?php
 
 date_default_timezone_set('America/Toronto');
+include "../../data/config.php";
 
 function get_requests($slug){
 	
@@ -64,7 +65,7 @@ $graph = new graph();
 
 echo $graph->render([
 	"title" => "Number of requests within the last 72 hours (non-cummulative)",
-	"subtitle" => date("jS M y @ g:ia", time()) . " || 24h=" . number_format($real_reqs_24h) . ", 72h=" . number_format($real_reqs_72h) . " || localhost:8000",
+	"subtitle" => date("jS M y @ g:ia", time()) . " || 24h=" . number_format($real_reqs_24h) . ", 72h=" . number_format($real_reqs_72h) . " || " . config::SERVER_NAME,
 	"x_label" => "<= Hours passed =>",
 	"y_label" => "<= Request count/hour =>",
 	"grad_x" => 25,