mirror of
https://github.com/PAMGuard/PAMGuard.git
synced 2024-11-21 22:52:22 +00:00
Fix alarm module so it correctly uses Data Selectors
This commit is contained in:
parent
8642834c1e
commit
44da3ffb57
@ -27,7 +27,11 @@ public class SimpleAlarmCounter extends AlarmCounter {
|
||||
|
||||
@Override
|
||||
public double getValue(int countType, PamDataUnit dataUnit) {
|
||||
return 1;
|
||||
if (dataSelector == null) {
|
||||
return 1;
|
||||
}
|
||||
double val = dataSelector.scoreData(dataUnit);
|
||||
return val;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user