Same here even though we were doing long arithmetic which would most likely
avoid blowage. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5750 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -83,7 +83,7 @@ public class ReportingInvoker extends Invoker
|
|||||||
synchronized (this) {
|
synchronized (this) {
|
||||||
buf.append("- Max queue size: ").append(_maxQueueSize).append("\n");
|
buf.append("- Max queue size: ").append(_maxQueueSize).append("\n");
|
||||||
buf.append("- Units executed: ").append(_unitsRun);
|
buf.append("- Units executed: ").append(_unitsRun);
|
||||||
long runPerSec = (sinceLast == 0) ? 0 : 1000l*_unitsRun/sinceLast;
|
long runPerSec = (sinceLast == 0) ? 0 : _unitsRun/(sinceLast/1000);
|
||||||
buf.append(" (").append(runPerSec).append("/s)\n");
|
buf.append(" (").append(runPerSec).append("/s)\n");
|
||||||
if (_currentUnit != null) {
|
if (_currentUnit != null) {
|
||||||
String uname = StringUtil.safeToString(_currentUnit);
|
String uname = StringUtil.safeToString(_currentUnit);
|
||||||
|
|||||||
Reference in New Issue
Block a user