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; AbstractWarningRecord record = entry.record;
String sig = record.getSig(); String sig = record.getSig();
boolean samplingOn = false; boolean samplingOn = false;
if(sig.equals(WATCH_SIG)){ if(sig !=null){
if(showWatchSampling()) if(sig.equals(WATCH_SIG) && showWatchSampling()){
samplingOn = true; samplingOn = true;
}else if(sig.equals(WARN_SIG)){ }else if(sig.equals(WARN_SIG) && showWarnSampling()){
if(showWarnSampling()) samplingOn = true;
samplingOn = true; }else if(sig.equals(ADVISORY_SIG) && showAdvisorySampling()){
}else if(sig.equals(ADVISORY_SIG)){ samplingOn = true;
if(showAdvisorySampling()) }else{
samplingOn = true; if(showOtherSampling()){
samplingOn = true;
}
}
}else{ }else{
if(showOtherSampling()) if(showOtherSampling())
samplingOn = true; samplingOn = true;