From: Tobias Diekershoff Date: Tue, 27 Dec 2016 16:53:59 +0000 (+0100) Subject: for the fed stats it is better to have a >= then a = in the query X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=236c7805a4ebb1beca89211454644cd6d0f50da1;p=friendica.git for the fed stats it is better to have a >= then a = in the query --- diff --git a/mod/admin.php b/mod/admin.php index 72412f69b4..841aaa7871 100644 --- a/mod/admin.php +++ b/mod/admin.php @@ -285,14 +285,14 @@ function admin_page_federation(&$a) { // get a total count for the platform, the name and version of the // highest version and the protocol tpe $c = qu('SELECT COUNT(*) AS `total`, `platform`, `network`, `version` FROM `gserver` - WHERE `platform` LIKE "%s" AND `last_contact` > `last_failure` + WHERE `platform` LIKE "%s" AND `last_contact` >= `last_failure` ORDER BY `version` ASC;', $p); $total = $total + $c[0]['total']; // what versions for that platform do we know at all? // again only the active nodes $v = qu('SELECT COUNT(*) AS `total`, `version` FROM `gserver` - WHERE `last_contact` > `last_failure` AND `platform` LIKE "%s" + WHERE `last_contact` >= `last_failure` AND `platform` LIKE "%s" GROUP BY `version` ORDER BY `version`;', $p);