diff options
author | jim-p <jim@pingle.org> | 2010-07-13 18:00:33 -0400 |
---|---|---|
committer | jim-p <jim@pingle.org> | 2010-07-13 18:03:22 -0400 |
commit | 85351a82c0d21026ffd90211cca8b91a1b041b21 (patch) | |
tree | aa2b736acac778e5ed114ed8f15a1b142fe7816d /config | |
parent | 67345cf7763b1e0045c468cf91f4e49fa81210ee (diff) | |
download | pfsense-packages-85351a82c0d21026ffd90211cca8b91a1b041b21.tar.gz pfsense-packages-85351a82c0d21026ffd90211cca8b91a1b041b21.tar.bz2 pfsense-packages-85351a82c0d21026ffd90211cca8b91a1b041b21.zip |
Fix previous month stats. Patch from Adam Thompson on the support list.
Diffstat (limited to 'config')
-rw-r--r-- | config/rrd-summary/status_rrd_summary.php | 4 |
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); |