Prevent a divide by zero error attempting to generate a log.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5736 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Mike Thomas
2009-04-20 17:12:27 +00:00
parent 916cb30339
commit 48b3a27af8
@@ -111,7 +111,11 @@ public class PresentsDObjectMgr
report.append("- Queue size: ").append(queueSize).append("\n");
report.append("- Max queue size: ").append(_current.maxQueueSize).append("\n");
report.append("- Units executed: ").append(_current.eventCount);
report.append(" (").append(1000*_current.eventCount/elapsed).append("/s)\n");
if (elapsed != 0) {
report.append(" (").append(1000*_current.eventCount/elapsed).append("/s)\n");
} else {
report.append(" (inf/s)\n");
}
// roll over stats
if (reset) {
_recent = _current;