From 2ee7bc20b82c84d5ff3bf9cab45d5e67937aaa1e Mon Sep 17 00:00:00 2001 From: Manuel CISSÉ Date: Mon, 21 Jun 2010 13:52:00 +0200 Subject: Default time range on the summary page is now configurable --- inc/collectd.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'inc/collectd.inc.php') diff --git a/inc/collectd.inc.php b/inc/collectd.inc.php index fde3267..3c8d48c 100644 --- a/inc/collectd.inc.php +++ b/inc/collectd.inc.php @@ -131,7 +131,9 @@ function graphs_from_plugin($host, $plugin) { $CONFIG['weburl'], build_url('detail.php', $items), $CONFIG['weburl'], - build_url('graph.php', $items) + (array_key_exists($plugin, $CONFIG['time_range']) ? + build_url('graph.php', $items, $CONFIG['time_range'][$plugin]) : + build_url('graph.php', $items) ) ); } } -- cgit v1.1