Divide the millis by 1000 to get seconds instead of multiplying the numerator
and blowing an int. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5749 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -112,7 +112,7 @@ public class PresentsDObjectMgr
|
||||
report.append("- Max queue size: ").append(_current.maxQueueSize).append("\n");
|
||||
report.append("- Units executed: ").append(_current.eventCount);
|
||||
if (elapsed != 0) {
|
||||
report.append(" (").append(1000*_current.eventCount/elapsed).append("/s)\n");
|
||||
report.append(" (").append(_current.eventCount/(elapsed/1000)).append("/s)\n");
|
||||
} else {
|
||||
report.append(" (inf/s)\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user