瀏覽代碼

for the fed stats it is better to have a >= then a = in the query

tags/3.5.1
Tobias Diekershoff 3 年之前
父節點
當前提交
236c7805a4
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      mod/admin.php

+ 2
- 2
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);



Loading…
取消
儲存