aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/rrd-summary/status_rrd_summary.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/rrd-summary/status_rrd_summary.php b/config/rrd-summary/status_rrd_summary.php
index 8e353527..3d50f2f4 100644
--- a/config/rrd-summary/status_rrd_summary.php
+++ b/config/rrd-summary/status_rrd_summary.php
@@ -33,9 +33,9 @@ $start = "00 " . date("m/{$startday}/Y");
$lastmonth = "00 " . date("m/{$startday}/Y", strtotime("-1 month", strtotime(date("m/{$startday}/Y"))));
$thismonth = fetch_rrd_summary($rrd, $start, "now");
-$lastmonth = fetch_rrd_summary($rrd, $lastmonth, $start, "86400");
+$lastmonth = fetch_rrd_summary($rrd, $lastmonth, $start, 720*60);
-function fetch_rrd_summary($rrd, $start, $end, $resolution="3600") {
+function fetch_rrd_summary($rrd, $start, $end, $resolution=(60*60)) {
$traffic = array();
$rrd = escapeshellarg("/var/db/rrd/{$rrd}");
$start = escapeshellarg($start);