Correctly convert to nanos. See #565

This commit is contained in:
Norman Maurer 2012-08-30 07:25:36 +03:00
parent eddca7583e
commit 252b1414bf

View File

@ -58,7 +58,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);
}