Merge pull request #466 from srcarter3/unidata_18.2.1

Small WWA change for sampling
This commit is contained in:
tiffanycmeyer13 2022-06-28 14:33:25 -06:00 committed by GitHub
commit f3c8f068a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;