mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-01 00:24:21 +02:00
cleanups, add epson printer discovery, fix bar colour on device overview for unknown toner colours
git-svn-id: http://www.observium.org/svn/observer/trunk@3036 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -19,14 +19,7 @@ if (count($toners))
|
||||
$free = formatStorage($toner['toner_free']);
|
||||
$used = formatStorage($toner['toner_used']);
|
||||
|
||||
$background['left'] = toner2colour($toner['toner_descr']);
|
||||
unset($background['right']);
|
||||
for ($i = 0;$i < strlen($background['left']); $i++)
|
||||
{
|
||||
$new = dechex(hexdec("0x" . $background['left'][$i])+1);
|
||||
if (strlen($new) != 1) { $new = 'F'; }
|
||||
$background['right'] .= $new;
|
||||
}
|
||||
$background = toner2colour($toner['toner_descr'], $percent);
|
||||
|
||||
$graph_array = array();
|
||||
$graph_array['height'] = "100";
|
||||
|
||||
Reference in New Issue
Block a user