mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
# -> / for phpdoc
git-svn-id: http://www.observium.org/svn/observer/trunk@3239 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
## Generate a list of ports and then call the multi_bits grapher to generate from the list
|
||||
/// Generate a list of ports and then call the multi_bits grapher to generate from the list
|
||||
|
||||
$ds_in = "INOCTETS";
|
||||
$ds_out = "OUTOCTETS";
|
||||
@@ -32,7 +32,7 @@ foreach (dbFetchRows("SELECT * FROM `ports` WHERE `device_id` = ?", array($devic
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/port-" . safename($port['ifIndex'] . ".rrd");
|
||||
if ($ignore != 1 && is_file($rrd_filename))
|
||||
{
|
||||
$port = ifLabel($port); ## Fix Labels! ARGH. This needs to be in the bloody database!
|
||||
$port = ifLabel($port); /// Fix Labels! ARGH. This needs to be in the bloody database!
|
||||
|
||||
$rrd_filenames[] = $rrd_filename;
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
|
||||
@@ -10,7 +10,7 @@ $rrd_options .= " COMMENT:'".str_pad($unit_long,$descr_len)." Cur Min
|
||||
|
||||
foreach (dbFetchRows("SELECT * FROM `sensors` WHERE `sensor_class` = ? AND `device_id` = ? ORDER BY `sensor_index`", array($class, $device['device_id'])) as $sensor)
|
||||
{
|
||||
# FIXME generic colour function
|
||||
/// FIXME generic colour function
|
||||
switch ($iter)
|
||||
{
|
||||
case "1":
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
|
||||
### FIXME - THIS IS BROKEN
|
||||
/// FIXME - THIS IS BROKEN
|
||||
|
||||
$sla = dbFetchRow("SELECT * FROM `slas` WHERE `sla_id` = ?", array($vars['id']));
|
||||
$device = device_by_id_cache($sla['device_id']);
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
|
||||
## Dear Tobias. You write in Perl, this makes me hate you forever.
|
||||
## This is my translation of Smokeping's graphing.
|
||||
## Thanks to Bill Fenner for Perl->Human translation:>
|
||||
/// Dear Tobias. You write in Perl, this makes me hate you forever.
|
||||
/// This is my translation of Smokeping's graphing.
|
||||
/// Thanks to Bill Fenner for Perl->Human translation:>
|
||||
|
||||
$scale_min = 0;
|
||||
$scale_rigid = TRUE;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
|
||||
## Dear Tobias. You write in Perl, this makes me hate you forever.
|
||||
## This is my translation of Smokeping's graphing.
|
||||
## Thanks to Bill Fenner for Perl->Human translation:>
|
||||
/// Dear Tobias. You write in Perl, this makes me hate you forever.
|
||||
/// This is my translation of Smokeping's graphing.
|
||||
/// Thanks to Bill Fenner for Perl->Human translation:>
|
||||
|
||||
$scale_min = 0;
|
||||
$scale_rigid = TRUE;
|
||||
@@ -22,7 +22,7 @@ if($width > "500")
|
||||
$descr_len = 12 + round(($width - 275) / 8);
|
||||
}
|
||||
|
||||
# FIXME str_pad really needs a "limit to length" so we can rid of all the substrs all over the code to limit the length as below...
|
||||
/// FIXME str_pad really needs a "limit to length" so we can rid of all the substrs all over the code to limit the length as below...
|
||||
if($width > "500")
|
||||
{
|
||||
$rrd_options .= " COMMENT:'".substr(str_pad($unit_text, $descr_len+5),0,$descr_len+5)." RTT Loss SDev RTT\:SDev\l'";
|
||||
|
||||
@@ -10,7 +10,7 @@ $rrd_options .= " COMMENT:' Size Used %age\\l'";
|
||||
|
||||
foreach (dbFetchRows("SELECT * FROM storage where device_id = ?", array($device['device_id'])) as $storage)
|
||||
{
|
||||
# FIXME generic colour function
|
||||
/// FIXME generic colour function
|
||||
if ($iter=="1") { $colour="CC0000"; } elseif ($iter=="2") { $colour="008C00"; } elseif ($iter=="3") { $colour="4096EE"; }
|
||||
elseif ($iter=="4") { $colour="73880A"; } elseif ($iter=="5") { $colour="D01F3C"; } elseif ($iter=="6") { $colour="36393D"; }
|
||||
elseif ($iter=="7") { $colour="FF0084"; $iter = "0"; }
|
||||
|
||||
@@ -12,7 +12,7 @@ foreach (dbFetchRows("SELECT * FROM toner where device_id = ?", array($device['d
|
||||
|
||||
if ($colour['left'] == NULL)
|
||||
{
|
||||
# FIXME generic colour function
|
||||
/// FIXME generic colour function
|
||||
switch ($iter)
|
||||
{
|
||||
case "1":
|
||||
|
||||
Reference in New Issue
Block a user