wipe out mempool cache on new host

git-svn-id: http://www.observium.org/svn/observer/trunk@1409 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2010-07-18 09:57:48 +00:00
parent ab27abe5f8
commit ab99bf5ef8
2 changed files with 7 additions and 0 deletions

View File

@ -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));
}
}
?>

View File

@ -52,6 +52,8 @@ while($mempool = mysql_fetch_array($mempool_data)) {
}
unset($mempool_cache);
echo("\n");
?>