Differentiate between interactive reports and periodically generated reports.

Only reset our accumulating counters for the periodic reports.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4219 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2006-06-25 23:03:51 +00:00
parent 091fda3e77
commit 012549d177
3 changed files with 28 additions and 14 deletions
@@ -712,7 +712,8 @@ public class PresentsDObjectMgr
}
// documentation inherited from interface PresentsServer.Reporter
public void appendReport (StringBuilder report, long now, long sinceLast)
public void appendReport (
StringBuilder report, long now, long sinceLast, boolean reset)
{
report.append("* presents.PresentsDObjectMgr:\n");
int queueSize = _evqueue.size();
@@ -733,9 +734,11 @@ public class PresentsDObjectMgr
}
// roll over stats
_recent = _current;
_current = new Stats();
_current.maxQueueSize = queueSize;
if (reset) {
_recent = _current;
_current = new Stats();
_current.maxQueueSize = queueSize;
}
}
/**