mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Added option to allow absolute dimensions on graphs
This commit is contained in:
@ -181,8 +181,8 @@ function get_percentage_colours($percentage) {
|
||||
}//end get_percentage_colours()
|
||||
|
||||
|
||||
function generate_minigraph_image($device, $start, $end, $type, $legend='no', $width=275, $height=100, $sep='&', $class='minigraph-image') {
|
||||
return '<img class="'.$class.'" src="graph.php?'.implode($sep, array('device='.$device['device_id'], "from=$start", "to=$end", "width=$width", "height=$height", "type=$type", "legend=$legend")).'">';
|
||||
function generate_minigraph_image($device, $start, $end, $type, $legend='no', $width=275, $height=100, $sep='&', $class='minigraph-image',$absolute_size=0) {
|
||||
return '<img class="'.$class.'" src="graph.php?'.implode($sep, array('device='.$device['device_id'], "from=$start", "to=$end", "width=$width", "height=$height", "type=$type", "legend=$legend", "absolute=$absolute_size")).'">';
|
||||
|
||||
}//end generate_minigraph_image()
|
||||
|
||||
|
Reference in New Issue
Block a user