From 297d2f20cfc1fa0188181e80404f271946a2aa8d Mon Sep 17 00:00:00 2001 From: loviuz Date: Sat, 8 Aug 2020 22:39:47 +0200 Subject: [PATCH] Fix calcolo devices per vendor --- ws/reader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ws/reader.php b/ws/reader.php index f7059bc..90dcef3 100644 --- a/ws/reader.php +++ b/ws/reader.php @@ -299,7 +299,7 @@ switch( $_POST['op'] ){ $sql = " SELECT SUBSTRING(mac, 1, 8) AS indice, - COUNT(mac) AS valore + COUNT(DISTINCT(mac)) AS valore FROM `logs` GROUP BY