diff options
author | Manuel CISSÉ | 2010-06-21 13:52:00 +0200 |
---|---|---|
committer | Pim van den Berg | 2010-06-22 20:22:12 +0200 |
commit | 2ee7bc20b82c84d5ff3bf9cab45d5e67937aaa1e (patch) | |
tree | 0293088d5602fc5f8600f2011ad949613f273db0 /inc/collectd.inc.php | |
parent | Uptime plugin now display current/max/avg values in days instead of seconds (diff) | |
download | apt-panopticon_cgp-2ee7bc20b82c84d5ff3bf9cab45d5e67937aaa1e.zip apt-panopticon_cgp-2ee7bc20b82c84d5ff3bf9cab45d5e67937aaa1e.tar.gz apt-panopticon_cgp-2ee7bc20b82c84d5ff3bf9cab45d5e67937aaa1e.tar.bz2 apt-panopticon_cgp-2ee7bc20b82c84d5ff3bf9cab45d5e67937aaa1e.tar.xz |
Default time range on the summary page is now configurable
Diffstat (limited to '')
-rw-r--r-- | inc/collectd.inc.php | 4 |
1 files changed, 3 insertions, 1 deletions
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) { | |||
131 | $CONFIG['weburl'], | 131 | $CONFIG['weburl'], |
132 | build_url('detail.php', $items), | 132 | build_url('detail.php', $items), |
133 | $CONFIG['weburl'], | 133 | $CONFIG['weburl'], |
134 | build_url('graph.php', $items) | 134 | (array_key_exists($plugin, $CONFIG['time_range']) ? |
135 | build_url('graph.php', $items, $CONFIG['time_range'][$plugin]) : | ||
136 | build_url('graph.php', $items) ) | ||
135 | ); | 137 | ); |
136 | } | 138 | } |
137 | } | 139 | } |