The the pie chart for online user is showing Total and online as totals not percentages of total to online.
My pie charts look like only 50% of people are online, but 95% are online.
// get total users online$sql="SELECT DISTINCT(UserName) FROM ".$configValues['CONFIG_DB_TBL_RADACCT']." WHERE (AcctStopTime is NULL OR AcctStopTime = '0000-00-00 00:00:00')";$res=$dbSocket->query($sql);$totalUsersOnline=$res->numRows();
Thanks for the bug report.
Please apply the following patch to library/graphs-reports-online-users.php:
Index: library/graphs-reports-online-users.php
--- library/graphs-reports-online-users.php (revision 2111)
+++ library/graphs-reports-online-users.php (working copy)
@@ -35,16 +35,21 @@
$res = $dbSocket->query($sql);
$totalUsers = $res->numRows();
- $chart->addPoint(new Point("$totalUsers ($totalUsers users total)", "$totalUsers"));
- $chart->addPoint(new Point("$totalUsersOnline ($totalUsersOnline users online)", "$totalUsersOnline"));
Let me know if it works well or requires more attention.