Let's be precise.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4872 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -113,7 +113,7 @@ public class PeerClient extends PresentsClient
|
|||||||
protected void handleThrottleExceeded ()
|
protected void handleThrottleExceeded ()
|
||||||
{
|
{
|
||||||
long now = System.currentTimeMillis();
|
long now = System.currentTimeMillis();
|
||||||
if (now > _nextThrottleWarning) {
|
if (now >= _nextThrottleWarning) {
|
||||||
log.warning("Peer sent more than 100 messages in one second " + this + ".");
|
log.warning("Peer sent more than 100 messages in one second " + this + ".");
|
||||||
_nextThrottleWarning = now + 5000L; // don't warn more than once every 5 seconds
|
_nextThrottleWarning = now + 5000L; // don't warn more than once every 5 seconds
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user