From 86dca84de5fa2fab3593bea846dbe9273c995041 Mon Sep 17 00:00:00 2001 From: jim-p Date: Tue, 13 Jul 2010 18:23:26 -0400 Subject: Use 3600 here. --- config/rrd-summary/status_rrd_summary.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/rrd-summary/status_rrd_summary.php') diff --git a/config/rrd-summary/status_rrd_summary.php b/config/rrd-summary/status_rrd_summary.php index 3d50f2f4..0e43d95c 100644 --- a/config/rrd-summary/status_rrd_summary.php +++ b/config/rrd-summary/status_rrd_summary.php @@ -35,7 +35,7 @@ $lastmonth = "00 " . date("m/{$startday}/Y", strtotime("-1 month", strtotime(dat $thismonth = fetch_rrd_summary($rrd, $start, "now"); $lastmonth = fetch_rrd_summary($rrd, $lastmonth, $start, 720*60); -function fetch_rrd_summary($rrd, $start, $end, $resolution=(60*60)) { +function fetch_rrd_summary($rrd, $start, $end, $resolution=3600) { $traffic = array(); $rrd = escapeshellarg("/var/db/rrd/{$rrd}"); $start = escapeshellarg($start); -- cgit v1.2.3