tidy up some more eventlog things (#5885)

* tidy up some more eventlog things

* update sql file
This commit is contained in:
Neil Lathwood
2017-02-14 12:06:01 +00:00
committed by GitHub
parent 4176379ae3
commit 1e2ab73239
5 changed files with 10 additions and 8 deletions

View File

@@ -32,10 +32,10 @@ if (!empty($ifName) && is_numeric($port_id) && is_numeric($port_id)) {
$device = device_by_id_cache($device_id);
if (is_array($speed)) {
del_dev_attrib($device, 'ifSpeed:'.$ifName);
log_event("$ifName Port speed cleared manually", $device, 'interface', $port_id);
log_event("$ifName Port speed cleared manually", $device, 'interface', 3, $port_id);
} else {
set_dev_attrib($device, 'ifSpeed:'.$ifName, 1);
log_event("$ifName Port speed set manually: $speed", $device, 'interface', $port_id);
log_event("$ifName Port speed set manually: $speed", $device, 'interface', 3, $port_id);
$port_tune = get_dev_attrib($device, 'ifName_tune:'.$ifName);
$device_tune = get_dev_attrib($device, 'override_rrdtool_tune');
if ($port_tune == "true" ||