diff --git a/index.php b/index.php
index 6bc3a46..9c4afd5 100644
--- a/index.php
+++ b/index.php
@@ -202,18 +202,18 @@ function drawMonthlyChart() {
-
+
- Day |
+ Hour |
Received |
Sent |
Total |
@@ -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'];
+ ?>
+
+ |
+ |
+ |
+ |
+
-
+
- Hour |
+ Day |
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'];
+ ?>
+
+ |
+ |
+ |
+ |
+