diff --git a/html/pages/graphs.inc.php b/html/pages/graphs.inc.php index 0b0b1c5f9..44790845d 100644 --- a/html/pages/graphs.inc.php +++ b/html/pages/graphs.inc.php @@ -230,6 +230,18 @@ if (!$auth) echo(generate_link("Hide Legend",$vars, array('page' => "graphs", 'legend' => "no"))); } + ### FIXME : do this properly + if($type == "port" && $subtype == "bits") + { + echo(' | '); + if ($vars['previous'] == "yes") + { + echo(generate_link("Hide Previous",$vars, array('page' => "graphs", 'previous' => NULL))); + } else { + echo(generate_link("Show Previous",$vars, array('page' => "graphs", 'previous' => "yes"))); + } + } + echo('
'); if ($vars['showcommand'] == "yes")