]> git.mxchange.org Git - friendica.git/commitdiff
for the fed stats it is better to have a >= then a = in the query
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Tue, 27 Dec 2016 16:53:59 +0000 (17:53 +0100)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Tue, 27 Dec 2016 16:53:59 +0000 (17:53 +0100)
mod/admin.php

index 72412f69b439a926b212096c564e14145a5122ad..841aaa7871463cc9e16bc3d108ece4f2384465e6 100644 (file)
@@ -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);