Accept and honor the reset parameter.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4220 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -386,7 +386,8 @@ public class ClientManager
|
||||
}
|
||||
|
||||
// documentation inherited from interface PresentsServer.Reporter
|
||||
public void appendReport (StringBuilder report, long now, long sinceLast)
|
||||
public void appendReport (
|
||||
StringBuilder report, long now, long sinceLast, boolean reset)
|
||||
{
|
||||
report.append("* presents.ClientManager:\n");
|
||||
report.append("- Sessions: ");
|
||||
|
||||
@@ -202,14 +202,21 @@ public class ConnectionManager extends LoopingThread
|
||||
}
|
||||
|
||||
// documentation inherited from interface PresentsServer.Reporter
|
||||
public void appendReport (StringBuilder report, long now, long sinceLast)
|
||||
public void appendReport (
|
||||
StringBuilder report, long now, long sinceLast, boolean reset)
|
||||
{
|
||||
long bytesIn, bytesOut, msgsIn, msgsOut;
|
||||
synchronized (this) {
|
||||
bytesIn = _bytesIn; _bytesIn = 0L;
|
||||
bytesOut = _bytesOut; _bytesOut = 0L;
|
||||
msgsIn = _msgsIn; _msgsIn = 0;
|
||||
msgsOut = _msgsOut; _msgsOut = 0;
|
||||
bytesIn = _bytesIn;
|
||||
bytesOut = _bytesOut;
|
||||
msgsIn = _msgsIn;
|
||||
msgsOut = _msgsOut;
|
||||
if (reset) {
|
||||
_bytesIn = 0L;
|
||||
_bytesOut = 0L;
|
||||
_msgsIn = 0;
|
||||
_msgsOut = 0;
|
||||
}
|
||||
}
|
||||
|
||||
report.append("* presents.net.ConnectionManager:\n");
|
||||
|
||||
Reference in New Issue
Block a user