We need the current timestamp to report proper idle duration.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6386 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -152,7 +152,7 @@ public abstract class Connection implements NetEventHandler
|
|||||||
}
|
}
|
||||||
if (!isClosed()) {
|
if (!isClosed()) {
|
||||||
log.info("Disconnecting non-communicative client",
|
log.info("Disconnecting non-communicative client",
|
||||||
"conn", this, "idle", (idleStamp - _lastEvent) + "ms");
|
"conn", this, "idle", (System.currentTimeMillis() - _lastEvent) + "ms");
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user