]> git.mxchange.org Git - friendica.git/commitdiff
fix federation statistics
authorrabuzarus <>
Sun, 12 Jun 2016 17:15:12 +0000 (19:15 +0200)
committerrabuzarus <>
Sun, 12 Jun 2016 17:15:12 +0000 (19:15 +0200)
mod/admin.php

index 36b2ca730f3515b3e490460fff8b7c35de3703ed..547c37fb6c9191158f44cc5f82da9cde75107e28 100644 (file)
@@ -289,7 +289,7 @@ function admin_page_federation(&$a) {
 
                // what versions for that platform do we know at all?
                // again only the active nodes
-               $v = q('SELECT COUNT(*) AS `totalversion` FROM `gserver`
+               $v = q('SELECT COUNT(*) AS `total`, `version` FROM `gserver`
                                WHERE `last_contact` > `last_failure` AND `platform` LIKE "%s"  AND `version` != ""
                                GROUP BY `version`
                                ORDER BY `version`;', $p);