mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
PSR2 Cleanup: /html edition
Travis tests for code conformance. Ignore warnings for now. Fixed all errors, left most warnings.
This commit is contained in:
@@ -11,8 +11,7 @@ $colour_area = 'ffaaaa';
|
||||
|
||||
if ($width > '500') {
|
||||
$descr_len = 13;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$descr_len = 8;
|
||||
$descr_len += round(($width - 250) / 8);
|
||||
}
|
||||
@@ -20,8 +19,7 @@ else {
|
||||
if ($width > '500') {
|
||||
$rrd_options .= " COMMENT:'".substr(str_pad($unit_text, ($descr_len + 5)), 0, ($descr_len + 5))."Total Used Free( Min Max Ave)'";
|
||||
$rrd_options .= " COMMENT:'\l'";
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$rrd_options .= " COMMENT:'".substr(str_pad($unit_text, ($descr_len + 5)), 0, ($descr_len + 5))."Total Used Free\l'";
|
||||
}
|
||||
|
||||
@@ -51,8 +49,7 @@ if ($width > '500') {
|
||||
$rrd_options .= " GPRINT:$mempool[mempool_id]perc:MIN:'%5.2lf%% '";
|
||||
$rrd_options .= " GPRINT:$mempool[mempool_id]perc:MAX:'%5.2lf%% '";
|
||||
$rrd_options .= " GPRINT:$mempool[mempool_id]perc:AVERAGE:%5.2lf%%\\\\n";
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$rrd_options .= " LINE1.25:$mempool[mempool_id]perc#".$background['left'].":'$descr'";
|
||||
$rrd_options .= " GPRINT:$mempool[mempool_id]size:LAST:%6.2lf%sB";
|
||||
$rrd_options .= " GPRINT:$mempool[mempool_id]used:LAST:%6.2lf%sB";
|
||||
|
||||
Reference in New Issue
Block a user