Factor out our report interval specification so that Yohoho can change it
without hackery. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5881 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -74,7 +74,7 @@ public class ReportManager
|
||||
logReport(LOG_REPORT_HEADER +
|
||||
generateReport(DEFAULT_TYPE, System.currentTimeMillis(), true));
|
||||
}
|
||||
}).schedule(REPORT_INTERVAL, true);
|
||||
}).schedule(getReportInterval(), true);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -175,6 +175,14 @@ public class ReportManager
|
||||
log.info(report);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the period on which to schedule our report generation.
|
||||
*/
|
||||
protected long getReportInterval ()
|
||||
{
|
||||
return REPORT_INTERVAL;
|
||||
}
|
||||
|
||||
/** The time at which the server was started. */
|
||||
protected long _serverStartTime = System.currentTimeMillis();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user