mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
improved processor text description rewriting (now in function)
git-svn-id: http://www.observium.org/svn/observer/trunk@1315 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -20,11 +20,7 @@ if(mysql_result(mysql_query("SELECT count(*) from processors WHERE device_id = '
|
||||
|
||||
## REPLACE THIS SHITTY CODE. IT IS ALSO ELSEWHERE.
|
||||
|
||||
$text_descr = $proc['processor_descr'];
|
||||
$text_descr = str_replace("Routing Processor", "RP", $text_descr);
|
||||
$text_descr = str_replace("Switching Processor", "SP", $text_descr);
|
||||
$text_descr = str_replace("Sub-Module", "Module ", $text_descr);
|
||||
$text_descr = str_replace("DFC Card", "DFC", $text_descr);
|
||||
$text_descr = rewrite_processor_descr($proc['processor_descr']);
|
||||
|
||||
# disable short hrDeviceDescr. need to make this prettier.
|
||||
#$text_descr = short_hrDeviceDescr($proc['processor_descr']);
|
||||
|
Reference in New Issue
Block a user