mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Apply "Squiz" code style on old (pre-2014) files
This commit is contained in:
@ -1,12 +1,11 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$mysql_rrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-mysql-".$app['app_id'].".rrd";
|
||||
$mysql_rrd = $config['rrd_dir'].'/'.$device['hostname'].'/app-mysql-'.$app['app_id'].'.rrd';
|
||||
|
||||
if (is_file($mysql_rrd))
|
||||
{
|
||||
$rrd_filename = $mysql_rrd;
|
||||
if (is_file($mysql_rrd)) {
|
||||
$rrd_filename = $mysql_rrd;
|
||||
}
|
||||
|
||||
$rrd_options .= ' DEF:a='.$rrd_filename.':IDBLBSe:AVERAGE ';
|
||||
@ -29,5 +28,3 @@ $rrd_options .= 'LINE1:c#0022FF:"KB Written " ';
|
||||
$rrd_options .= 'GPRINT:c:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:c:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:c:MAX:"%6.2lf %s\\n" ';
|
||||
|
||||
?>
|
||||
|
Reference in New Issue
Block a user