diff options
author | Christian Hofmaier | 2016-12-29 15:10:43 +0100 |
---|---|---|
committer | Christian Hofmaier | 2016-12-29 15:10:43 +0100 |
commit | d7eaf72343acc41f648f2c1ed6ff1845d9b514c2 (patch) | |
tree | 5c673d03292dcc31f68725bda69e367f929eef4e /modules-available/statistics_reporting/page.inc.php | |
parent | [statistics_reporting] added location column in client table (diff) | |
download | slx-admin-d7eaf72343acc41f648f2c1ed6ff1845d9b514c2.tar.gz slx-admin-d7eaf72343acc41f648f2c1ed6ff1845d9b514c2.tar.xz slx-admin-d7eaf72343acc41f648f2c1ed6ff1845d9b514c2.zip |
[statistics_reporting] added comments and improved readability
Diffstat (limited to 'modules-available/statistics_reporting/page.inc.php')
-rw-r--r-- | modules-available/statistics_reporting/page.inc.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules-available/statistics_reporting/page.inc.php b/modules-available/statistics_reporting/page.inc.php index 8bd593f4..13446ed9 100644 --- a/modules-available/statistics_reporting/page.inc.php +++ b/modules-available/statistics_reporting/page.inc.php @@ -56,8 +56,8 @@ class Page_Statistics_Reporting extends Page while ($row = $res->fetch(PDO::FETCH_NUM)) { $median = StatisticReporting::calcMedian(StatisticReporting::calcMedian($row[2])); $data['perClient'][] = array('hostname' => $row[0], 'time' => StatisticReporting::formatSeconds($row[1]), 'timeInSeconds' => $row[1], - 'medianTime' => StatisticReporting::formatSeconds($median), 'medianTimeInSeconds' => $median, 'offTime' => StatisticReporting::formatSeconds($row[3]), 'offlineTimeInSeconds' => $row[3], 'sessions' => $row[4], - 'lastLogout' => date(DATE_RSS,$row[5]), 'lastLogoutUnixtime' => $row[5], 'lastStart' => date(DATE_RSS,$row[6]), 'lastStartUnixtime' => $row[6], 'shortSessions' => $row[7], 'locationName' => $row[8]); + 'medianTime' => StatisticReporting::formatSeconds($median), 'medianTimeInSeconds' => $median, 'offTime' => StatisticReporting::formatSeconds($row[3]), 'offlineTimeInSeconds' => $row[3], 'lastStartUnixtime' => $row[4], + 'lastLogout' => date(DATE_RSS,$row[5]), 'lastLogoutUnixtime' => $row[5], 'lastStart' => date(DATE_RSS,$row[6]), 'sessions' => $row[6], 'shortSessions' => $row[7], 'locationName' => $row[8]); } // per user |