Small WWA change for sampling
-make small change to support sampling on/off for sig weather resource
This commit is contained in:
parent
5e06eddf60
commit
d7c17f1118
1 changed files with 12 additions and 9 deletions
|
@ -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())
|
||||
if(sig !=null){
|
||||
if(sig.equals(WATCH_SIG) && showWatchSampling()){
|
||||
samplingOn = true;
|
||||
}else if(sig.equals(WARN_SIG)){
|
||||
if(showWarnSampling())
|
||||
}else if(sig.equals(WARN_SIG) && showWarnSampling()){
|
||||
samplingOn = true;
|
||||
}else if(sig.equals(ADVISORY_SIG)){
|
||||
if(showAdvisorySampling())
|
||||
}else if(sig.equals(ADVISORY_SIG) && showAdvisorySampling()){
|
||||
samplingOn = true;
|
||||
}else{
|
||||
if(showOtherSampling()){
|
||||
samplingOn = true;
|
||||
}
|
||||
}
|
||||
}else{
|
||||
if(showOtherSampling())
|
||||
samplingOn = true;
|
||||
|
|
Loading…
Add table
Reference in a new issue