Feat: add static analytic of code
This commit is contained in:
@@ -32,10 +32,6 @@ public class Mac extends OS {
|
||||
private final String NICE_BINARY_PATH = "nice";
|
||||
private final String ID_COMMAND_INVOCATION = "id -u";
|
||||
|
||||
public Mac() {
|
||||
super();
|
||||
}
|
||||
|
||||
@Override public String name() {
|
||||
return "mac";
|
||||
}
|
||||
@@ -128,7 +124,7 @@ public class Mac extends OS {
|
||||
try {
|
||||
// Shutdown the computer waiting delayInMinutes minutes to allow all SheepIt threads to close and exit the app
|
||||
ProcessBuilder builder = new ProcessBuilder("shutdown", "-h", String.valueOf(delayInMinutes));
|
||||
Process process = builder.inheritIO().start();
|
||||
builder.inheritIO().start();
|
||||
}
|
||||
catch (IOException e) {
|
||||
System.err.println(String.format("Mac::shutdownComputer Unable to execute the 'shutdown -h 1' command. Exception %s", e.getMessage()));
|
||||
|
||||
Reference in New Issue
Block a user