shorten manufacturers

git-svn-id: http://www.observium.org/svn/observer/trunk@3234 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2012-05-24 11:14:36 +00:00
parent 7ee22b8812
commit b151a8c54d

View File

@@ -37,6 +37,10 @@ if ($device['os'] == "linux" || $device['os'] == "endian")
if ($agent_data['dmi']['system-product-name'])
{
$hardware = ($agent_data['dmi']['system-manufacturer'] ? $agent_data['dmi']['system-manufacturer'] . ' ' : '') . $agent_data['dmi']['system-product-name'];
# Clean up "Dell Computer Corporation" and "Intel Corporation"
$hardware = str_replace(" Computer Corporation","",$hardware);
$hardware = str_replace(" Corporation","",$hardware);
}
if ($agent_data['dmi']['system-serial-number'])