From ab99bf5ef80b2b08291ae1ef6d0877a2dc6f28ca Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Sun, 18 Jul 2010 09:57:48 +0000 Subject: [PATCH] wipe out mempool cache on new host git-svn-id: http://www.observium.org/svn/observer/trunk@1409 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/includes/print-interface-graphs.inc.php | 5 +++++ includes/polling/mempools.inc.php | 2 ++ 2 files changed, 7 insertions(+) diff --git a/html/includes/print-interface-graphs.inc.php b/html/includes/print-interface-graphs.inc.php index 2e623beb0..30d062077 100644 --- a/html/includes/print-interface-graphs.inc.php +++ b/html/includes/print-interface-graphs.inc.php @@ -14,10 +14,15 @@ $periods = array('day', 'week', 'month', 'year'); +if($graph_type == "etherlike" && !is_file($config['rrd_dir'] . "/" . $device['hostname'] . "/etherlike-" . $interface['ifIndex'] . ".rrd")) { +} else { + foreach($periods as $period) { $graph_array['from'] = $$period; $graph_array_zoom = $graph_array; $graph_array_zoom['height'] = "150"; $graph_array_zoom['width'] = "400"; echo(overlib_link($_SERVER['REQUEST_URI'], generate_graph_tag($graph_array), generate_graph_tag($graph_array_zoom), NULL)); } +} + ?> diff --git a/includes/polling/mempools.inc.php b/includes/polling/mempools.inc.php index 010859e88..a9a3008e7 100755 --- a/includes/polling/mempools.inc.php +++ b/includes/polling/mempools.inc.php @@ -52,6 +52,8 @@ while($mempool = mysql_fetch_array($mempool_data)) { } +unset($mempool_cache); + echo("\n"); ?>