From 8c2a1d9b3732bb5d9e70dbce8ebbb0aa558dac3d Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Mon, 20 Jul 2009 22:58:39 +0000 Subject: [PATCH] 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 --- .../com/threerings/presents/server/ReportManager.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/java/com/threerings/presents/server/ReportManager.java b/src/java/com/threerings/presents/server/ReportManager.java index cd5700f40..1784bdf18 100644 --- a/src/java/com/threerings/presents/server/ReportManager.java +++ b/src/java/com/threerings/presents/server/ReportManager.java @@ -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();