diff --git a/index.php b/index.php index 6bc3a46..9c4afd5 100644 --- a/index.php +++ b/index.php @@ -202,18 +202,18 @@ function drawMonthlyChart() {
-
+
- + @@ -221,33 +221,31 @@ function drawMonthlyChart() { - - - - - - + for ($i = 0; $i < count($hourly); $i++) { + $hour = $hourly[$i]['label']; + $totalReceived = $hourly[$i]['rx']; + $totalSent = $hourly[$i]['tx']; + $totalTraffic = $hourly[$i]['total']; + ?> + + + + + +
DayHour Received Sent Total
-
+
- + @@ -255,21 +253,23 @@ function drawMonthlyChart() { - - - - - - + for ($i = 0; $i < count($daily); $i++) { + if ($daily[$i]['act'] == 1) { + $day = $daily[$i]['label']; + $totalReceived = $daily[$i]['rx']; + $totalSent = $daily[$i]['tx']; + $totalTraffic = $daily[$i]['total']; + ?> + + + + + +
HourDay Received Sent Total