count only version numbers starting with "numbers / dot or dash / numbers" in federation statistics
This commit is contained in:
parent
12dd657868
commit
7b5c5c0fa2
|
@ -290,7 +290,7 @@ function admin_page_federation(&$a) {
|
||||||
// what versions for that platform do we know at all?
|
// what versions for that platform do we know at all?
|
||||||
// again only the active nodes
|
// again only the active nodes
|
||||||
$v = qu('SELECT COUNT(*) AS `total`, `version` FROM `gserver`
|
$v = qu('SELECT COUNT(*) AS `total`, `version` FROM `gserver`
|
||||||
WHERE `last_contact` > `last_failure` AND `platform` LIKE "%s" AND `version` != ""
|
WHERE `last_contact` > `last_failure` AND `platform` LIKE "%s" AND `version` RLIKE "^[[:digit:]]+[-.][[:digit:]]+"
|
||||||
GROUP BY `version`
|
GROUP BY `version`
|
||||||
ORDER BY `version`;', $p);
|
ORDER BY `version`;', $p);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue