Shorten descriptions with interface names in

This commit is contained in:
laf
2015-07-18 18:55:24 +01:00
parent 4ffff7de8e
commit f98dce4f61

View File

@@ -57,7 +57,7 @@ if (count($sensors)) {
$sensor['sensor_descr'] = truncate($sensor['sensor_descr'], 48, '');
echo '<tr>
<td><strong>'.overlib_link($link, $sensor['sensor_descr'], $overlib_content).'</strong></td>
<td><strong>'.overlib_link($link, shorten_interface_type($sensor['sensor_descr']), $overlib_content).'</strong></td>
<td>'.overlib_link($link, $sensor_minigraph, $overlib_content).'</td>
<td>'.overlib_link($link, '<span '.($sensor['sensor_current'] < $sensor['sensor_limit_low'] || $sensor['sensor_current'] > $sensor['sensor_limit'] ? "style='color: red'" : '').'>'.$sensor['sensor_current'].$sensor_unit.'</span>', $overlib_content).'</td>
</tr>';