Fixed negative units per second value when total units is greater than about 2.2 million

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5639 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Jamie Doornbos
2009-01-19 23:46:53 +00:00
parent 3372808a9a
commit 2a1b047159
@@ -53,7 +53,7 @@ public class ReportingInvoker extends Invoker
synchronized (this) {
buf.append("- Max queue size: ").append(_maxQueueSize).append("\n");
buf.append("- Units executed: ").append(_unitsRun);
long runPerSec = (sinceLast == 0) ? 0 : 1000*_unitsRun/sinceLast;
long runPerSec = (sinceLast == 0) ? 0 : 1000l*_unitsRun/sinceLast;
buf.append(" (").append(runPerSec).append("/s)\n");
if (_currentUnit != null) {
String uname = StringUtil.safeToString(_currentUnit);