Small WWA change for sampling

-make small change to support sampling on/off for sig weather resource
This commit is contained in:
Shay Carter 2022-06-28 14:12:25 -06:00
parent 5e06eddf60
commit d7c17f1118

View file

@ -302,15 +302,18 @@ public abstract class AbstractWWAResource extends
AbstractWarningRecord record = entry.record;
String sig = record.getSig();
boolean samplingOn = false;
if(sig.equals(WATCH_SIG)){
if(showWatchSampling())
samplingOn = true;
}else if(sig.equals(WARN_SIG)){
if(showWarnSampling())
samplingOn = true;
}else if(sig.equals(ADVISORY_SIG)){
if(showAdvisorySampling())
samplingOn = true;
if(sig !=null){
if(sig.equals(WATCH_SIG) && showWatchSampling()){
samplingOn = true;
}else if(sig.equals(WARN_SIG) && showWarnSampling()){
samplingOn = true;
}else if(sig.equals(ADVISORY_SIG) && showAdvisorySampling()){
samplingOn = true;
}else{
if(showOtherSampling()){
samplingOn = true;
}
}
}else{
if(showOtherSampling())
samplingOn = true;