mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Simplify eventmask parsing
This commit is contained in:
parent
aeb66d4e27
commit
8a3d4ef204
@ -54,7 +54,7 @@ my ($sensor_id, $name, $type, $value, $units, $eventmask) = split(/,/, $res);
|
||||
#Output the value
|
||||
if ($value eq 'N/A') {
|
||||
if ($eventmask =~ /([0-9A-Fa-f]+)h/) {
|
||||
print hex substr($eventmask, 0, -1);
|
||||
print hex $1;
|
||||
} else {
|
||||
print $eventmask;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user