Correctly convert to nanos. See #565

This commit is contained in:
Norman Maurer 2012-08-30 07:24:22 +03:00
parent 9580c417c6
commit 44bfc47a52

View File

@ -55,7 +55,7 @@ final class SelectorUtil {
selectTimeout = DEFAULT_SELECT_TIMEOUT;
}
SELECT_TIMEOUT = selectTimeout;
SELECT_TIMEOUT_NANOS = TimeUnit.MILLISECONDS.toMicros(SELECT_TIMEOUT);
SELECT_TIMEOUT_NANOS = TimeUnit.MILLISECONDS.toNanos(SELECT_TIMEOUT);
logger.debug("Using select timeout of " + SELECT_TIMEOUT);
}