revert storing traffic in bytes as webalizer/awstats store in KB so goaccess needs to do that as well in order to stay consinstent throughout the system

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-11-04 12:49:26 +01:00
parent 8aa857ea36
commit ecd209b1d9
5 changed files with 6 additions and 5 deletions

View File

@@ -109,7 +109,7 @@ if ($page == 'overview') {
// get everything in bytes for the percentage calculation on the dashboard
$userinfo['diskspace_bytes'] = ($userinfo['diskspace'] > -1) ? $userinfo['diskspace'] * 1024 : -1;
$userinfo['traffic_bytes'] = ($userinfo['traffic'] > -1) ? $userinfo['traffic'] * 1024 : -1;
$userinfo['traffic_bytes_used'] = $userinfo['traffic_used'];
$userinfo['traffic_bytes_used'] = $userinfo['traffic_used'] * 1024;
if ($usages) {
$userinfo['diskspace_bytes_used'] = $usages['webspace'] * 1024;