From 7c5f2a8393a16e3532bf917c417bcf6cccb14965 Mon Sep 17 00:00:00 2001 From: Robert Anderson <randerson@lbsd.net> Date: Wed, 24 Jun 2009 14:15:03 +0000 Subject: [PATCH] Correct row name acctinputgigawords --- webui/user/index.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/webui/user/index.php b/webui/user/index.php index e40f036b..579deef0 100644 --- a/webui/user/index.php +++ b/webui/user/index.php @@ -82,7 +82,7 @@ function displayDetails() { if (!isset($row->acctinputoctets) && $row->acctinputoctets > 0) { $inputDataItem += ($row->accinputoctets / 1024 / 1024); } - if (!empty($row->acctinputgigawords) && $row->inputgigawords > 0) { + if (!empty($row->acctinputgigawords) && $row->acctinputgigawords > 0) { $inputDataItem += ($row->acctinputgigawords * 4096); } @@ -190,13 +190,16 @@ function displayDetails() { $topups[$i]['Limit'] = $row->value; $i++; } - # Set excess usage + + # Set excess traffic usage $excessTraffic = 0; if (is_numeric($trafficCap) && $trafficCap > 0) { $excessTraffic += $totalTraffic - $trafficCap; } elseif (is_string($trafficCap)) { $excessTraffic += $totalTraffic; } + + # Set excess uptime usage $excessUptime = 0; if (is_numeric($uptimeCap) && $uptimeCap > 0) { $excessUptime += $totalUptime - $uptimeCap; -- GitLab