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"); ?>