diff --git a/src/public/index.php b/src/public/index.php index 06fef9a..1926183 100644 --- a/src/public/index.php +++ b/src/public/index.php @@ -287,22 +287,22 @@ $peers = $memory->getByMethodCallback( - getByMethodCallback($db, 'findPeerTotalByTimeUpdated', [time() - WEBSITE_PEER_REMOTE_TIME_ONLINE_TIMEOUT, - strtotime('+1 month', strtotime(sprintf('%s-%s-%s 00:00', date('Y'), date('n'), 1)))]) ?> + getByMethodCallback($db, 'findPeerTotalByTimeUpdated', [time() - WEBSITE_PEER_REMOTE_TIME_ONLINE_TIMEOUT, + strtotime('+1 month', strtotime(sprintf('%s-%s-%s 00:00', date('Y'), date('n'), 1)))])) ?> - getByMethodCallback($db, 'findPeerTotalByTimeAdded', [strtotime(sprintf('%s-%s-%s 00:00', date('Y'), date('n'), 1)), - strtotime('+1 month', strtotime(sprintf('%s-%s-%s 00:00', date('Y'), date('n'), 1)))]) ?> + getByMethodCallback($db, 'findPeerTotalByTimeAdded', [strtotime(sprintf('%s-%s-%s 00:00', date('Y'), date('n'), 1)), + strtotime('+1 month', strtotime(sprintf('%s-%s-%s 00:00', date('Y'), date('n'), 1)))])) ?> - getByMethodCallback($db, 'findPeerTotalByTimeUpdated', [strtotime(sprintf('%s-%s-%s 00:00', date('Y'), date('n'), 1)), - strtotime('+1 month', strtotime(sprintf('%s-%s-%s 00:00', date('Y'), date('n'), 1)))]) ?> + getByMethodCallback($db, 'findPeerTotalByTimeUpdated', [strtotime(sprintf('%s-%s-%s 00:00', date('Y'), date('n'), 1)), + strtotime('+1 month', strtotime(sprintf('%s-%s-%s 00:00', date('Y'), date('n'), 1)))])) ?> - getByMethodCallback($db, 'getPeersTotal') ?> + getByMethodCallback($db, 'getPeersTotal')) ?> @@ -386,7 +386,7 @@ $peers = $memory->getByMethodCallback(
getByMethodCallback($db, 'getPeerFirstByTimeAdded')->timeAdded), - $memory->getByMethodCallback($db, 'getPeersTotal')) ?> + number_format($memory->getByMethodCallback($db, 'getPeersTotal'))) ?> diff --git a/src/public/peer.php b/src/public/peer.php index 5ed7b6b..c783801 100644 --- a/src/public/peer.php +++ b/src/public/peer.php @@ -366,15 +366,15 @@ $peerPortStatuses = $db->findLastPeerPortStatusesByPeerId($requestPeerId); - remoteTotal ?> + remoteTotal) ?> - sessionTotal ?> + sessionTotal) ?> - coordinateTotal ?> + coordinateTotal) ?> @@ -519,7 +519,7 @@ $peerPortStatuses = $db->findLastPeerPortStatusesByPeerId($requestPeerId);
getByMethodCallback($db, 'getPeerFirstByTimeAdded')->timeAdded), - $memory->getByMethodCallback($db, 'getPeersTotal')) ?> + number_format($memory->getByMethodCallback($db, 'getPeersTotal'))) ?> diff --git a/src/public/search.php b/src/public/search.php index cef48ca..758ab67 100644 --- a/src/public/search.php +++ b/src/public/search.php @@ -275,7 +275,7 @@ $results = $sphinx->searchPeers($requestQuery,
getByMethodCallback($db, 'getPeerFirstByTimeAdded')->timeAdded), - $memory->getByMethodCallback($db, 'getPeersTotal')) ?> + number_format($memory->getByMethodCallback($db, 'getPeersTotal'))) ?>