From 35961cc8e20338ce6cb0a192a62474d2d9819d0a Mon Sep 17 00:00:00 2001 From: cmaffio Date: Tue, 26 Apr 2016 12:07:34 +0200 Subject: [PATCH] Fix visualizzazione --- proxy/index.php | 5 +---- proxy/pool_lista.php | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/proxy/index.php b/proxy/index.php index 6a05511..d4eb109 100755 --- a/proxy/index.php +++ b/proxy/index.php @@ -45,7 +45,6 @@ while ($dato = mysql_fetch_array ( $res )) { Dettaglio - Inviati @@ -53,7 +52,6 @@ while ($dato = mysql_fetch_array ( $res )) { - @@ -62,10 +60,9 @@ while ($dato = mysql_fetch_array ( $res )) { - - + diff --git a/proxy/pool_lista.php b/proxy/pool_lista.php index 644f07e..793ab75 100755 --- a/proxy/pool_lista.php +++ b/proxy/pool_lista.php @@ -29,7 +29,7 @@ if (isset($_POST['tempo'])) { = DATE_SUB(NOW(), INTERVAL 1 $tempo)"; +$query = "SELECT GREATEST (sum(inviati), sum(ricevuti)) AS max from proxy_dati WHERE data_destroy >= DATE_SUB(NOW(), INTERVAL 1 $tempo) GROUP BY ip"; $res = mysql_query( $query, $DB_ID ); $valori = mysql_fetch_array ( $res ); $max = $valori['max'];