Browse Source

fix active pages total

main
ghost 1 year ago
parent
commit
0fb2e8a78c
  1. 12
      library/mysql.php

12
library/mysql.php

@ -96,6 +96,18 @@ class MySQL { @@ -96,6 +96,18 @@ class MySQL {
`hostTarget`.`name`,
`hostTarget`.`port`,
(
SELECT COUNT(*) FROM `hostPage` AS `hostPageTotal`
WHERE `hostPageTotal`.`hostId` = `hostPageTarget`.`hostId`
AND `hostPageTotal`.`httpCode` = 200
AND `hostPageTotal`.`timeBanned` IS NULL
AND `hostPageTotal`.`mime` IS NOT NULL
) AS `total`,
(
SELECT COUNT(*)

Loading…
Cancel
Save