Remove duplicated code
This commit is contained in:
parent
1f95e5db4c
commit
ff9cc74bf6
@ -185,7 +185,7 @@ public final class NetUtil {
|
||||
if (file.exists()) {
|
||||
BufferedReader in = null;
|
||||
try {
|
||||
in = new BufferedReader(new FileReader("/proc/sys/net/core/somaxconn"));
|
||||
in = new BufferedReader(new FileReader(file));
|
||||
somaxconn = Integer.parseInt(in.readLine());
|
||||
logger.debug("/proc/sys/net/core/somaxconn: {}", somaxconn);
|
||||
} catch (Exception e) {
|
||||
|
Loading…
Reference in New Issue
Block a user