mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
upadtes
git-svn-id: http://www.observium.org/svn/observer/trunk@479 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
12
html/includes/graphs/common.inc.php
Normal file
12
html/includes/graphs/common.inc.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
global $config, $installdir;
|
||||
$graphfile = $config['install_dir'] . "/graphs/" . $args['graphfile'];
|
||||
|
||||
$options .= " --alt-autoscale-max -E --start ".$args['from']." --end " . ($args['to'] - 150) . " --width ".$args['width']." --height ".$args['height']." ";
|
||||
$options .= $config['rrdgraph_def_text'];
|
||||
|
||||
if($args['height'] < "99") { $options .= " --only-graph"; }
|
||||
if($args['width'] <= "300") { $options .= " --font LEGEND:7:".$config['mono_font']." --font AXIS:6:".$config['mono_font']." --font-render-mode normal"; }
|
||||
|
||||
?>
|
Reference in New Issue
Block a user