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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user