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