Fix alarm module so it correctly uses Data Selectors

This commit is contained in:
Douglas Gillespie 2023-01-10 10:45:33 +00:00
parent 8642834c1e
commit 44da3ffb57

View File

@ -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