use of net.sourceforge.processdash.data.DateData in project processdash by dtuma.
the class EVReportSettings method isTimestampRecent.
private boolean isTimestampRecent() {
DateData settingsTimestamp = (DateData) getValue("settings//timestamp");
if (settingsTimestamp == null)
return false;
long when = settingsTimestamp.getValue().getTime();
long delta = System.currentTimeMillis() - when;
if (10000 < delta && delta < MAX_SETTINGS_AGE)
touchSettingsTimestamp();
return (delta < MAX_SETTINGS_AGE);
}
Aggregations