Remove duplicated code

This commit is contained in:
Norman Maurer 2014-07-31 18:09:54 -07:00
parent 1f95e5db4c
commit ff9cc74bf6

View File

@ -185,7 +185,7 @@ public final class NetUtil {
if (file.exists()) { if (file.exists()) {
BufferedReader in = null; BufferedReader in = null;
try { try {
in = new BufferedReader(new FileReader("/proc/sys/net/core/somaxconn")); in = new BufferedReader(new FileReader(file));
somaxconn = Integer.parseInt(in.readLine()); somaxconn = Integer.parseInt(in.readLine());
logger.debug("/proc/sys/net/core/somaxconn: {}", somaxconn); logger.debug("/proc/sys/net/core/somaxconn: {}", somaxconn);
} catch (Exception e) { } catch (Exception e) {