As with the messages, turn this into a method so that we can override it.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6572 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -215,6 +215,10 @@ public abstract class PeerManager
|
||||
/** The total number of messages sent to all of our peers. */
|
||||
public long peerMessagesOut;
|
||||
|
||||
public void noteNodeActionInvoked (NodeAction action) {
|
||||
nodeActionsInvoked++;
|
||||
}
|
||||
|
||||
public void notePeerMessageReceived (Message msg) {
|
||||
peerMessagesIn.incrementAndGet();
|
||||
}
|
||||
@@ -450,7 +454,7 @@ public abstract class PeerManager
|
||||
}
|
||||
|
||||
if (invoked) {
|
||||
_stats.nodeActionsInvoked++; // stats!
|
||||
_stats.noteNodeActionInvoked(action); // stats!
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user