* Show correct calculation of the montlhy usage time.
* Don't show an account as locked if Dialup-Access does not exist and the mapping corresponds to 'none' attribute
* Make clean_radacct and truncate_radacct work correctly
+* Fix a small bug in bytes2str. It will now also show GBs if appropriate
Ver 1.62:
* Remove one sql query from user_admin which was not needed.
* Instead of a query like "LIKE 'YYYY-MM-DD%'" use "AcctStopTime >= 'YYYY-MM-DD 00:00:00 AND AcctStopTime
$bytes=floor($bytes);
if ($bytes > 536870912)
$str = sprintf("%5.2f GBs", $bytes/1073741824);
- if ($bytes > 524288)
+ else if ($bytes > 524288)
$str = sprintf("%5.2f MBs", $bytes/1048576);
else
$str = sprintf("%5.2f KBs", $bytes/1024);