From 3db2ce0a526d21dd7451cf25e810830d479fd799 Mon Sep 17 00:00:00 2001 From: Alex Marston Date: Fri, 18 Nov 2016 18:32:27 +0000 Subject: [PATCH] Making sure traffic table names are displayed in right order --- index.php | 68 +++++++++++++++++++++++++++---------------------------- 1 file changed, 34 insertions(+), 34 deletions(-) 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