public boolean shouldUpdateAlerts(){
  if (alerts_lastUpdated == null) {
    alerts_lastUpdated=Calendar.getInstance();
    return true;
  }
  Calendar updateTreshold=Calendar.getInstance();
  updateTreshold.add(Calendar.MINUTE,-10);
  return alerts_lastUpdated.before(updateTreshold);
}

public boolean shouldUpdateAlerts ( ) { if ( alerts_lastUpdated == null ) { alerts_lastUpdated = Calendar . getInstance ( ) ; return true ; } Calendar updateTreshold = Calendar . getInstance ( ) ; updateTreshold . add ( Calendar . MINUTE , - 10 ) ; return alerts_lastUpdated . before ( updateTreshold ) ; }
returns true if we should retrieve nodes information we consider alerts information as outdated after 10 minutes . note : hitting refresh on alerts screen forces data refresh .
