Ref: ensure comment matches reality
This commit is contained in:
committed by
Sheepit Renderfarm
parent
b97054738b
commit
bd3fc92634
@@ -183,7 +183,7 @@ public class Linux extends OS {
|
|||||||
|
|
||||||
@Override public void shutdownComputer(int delayInMinutes) {
|
@Override public void shutdownComputer(int delayInMinutes) {
|
||||||
try {
|
try {
|
||||||
// Shutdown the computer waiting 1 minute to allow all SheepIt threads to close and exit the app
|
// 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));
|
ProcessBuilder builder = new ProcessBuilder("shutdown", "-h", String.valueOf(delayInMinutes));
|
||||||
Process process = builder.inheritIO().start();
|
Process process = builder.inheritIO().start();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ public class Mac extends OS {
|
|||||||
|
|
||||||
@Override public void shutdownComputer(int delayInMinutes) {
|
@Override public void shutdownComputer(int delayInMinutes) {
|
||||||
try {
|
try {
|
||||||
// Shutdown the computer waiting 1 minute to allow all SheepIt threads to close and exit the app
|
// 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));
|
ProcessBuilder builder = new ProcessBuilder("shutdown", "-h", String.valueOf(delayInMinutes));
|
||||||
Process process = builder.inheritIO().start();
|
Process process = builder.inheritIO().start();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -66,6 +66,9 @@ public abstract class OS {
|
|||||||
|
|
||||||
public abstract boolean checkNiceAvailability();
|
public abstract boolean checkNiceAvailability();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Shutdown the computer waiting delayInMinutes minutes to allow all SheepIt threads to close and exit the app
|
||||||
|
*/
|
||||||
public abstract void shutdownComputer(int delayInMinutes);
|
public abstract void shutdownComputer(int delayInMinutes);
|
||||||
|
|
||||||
public CPU getCPU() {
|
public CPU getCPU() {
|
||||||
|
|||||||
@@ -158,7 +158,7 @@ public class Windows extends OS {
|
|||||||
|
|
||||||
@Override public void shutdownComputer(int delayInMinutes) {
|
@Override public void shutdownComputer(int delayInMinutes) {
|
||||||
try {
|
try {
|
||||||
// Shutdown the computer, waiting 60 seconds, force app closure and on the shutdown screen indicate that was initiated by SheepIt app
|
// Shutdown the computer, waiting delayInMinutes minutes, force app closure and on the shutdown screen indicate that was initiated by SheepIt app
|
||||||
ProcessBuilder builder = new ProcessBuilder("shutdown", "/s", "/f", "/t", String.valueOf(delayInMinutes * 60), "/c", "\"SheepIt App has initiated this computer shutdown.\"");
|
ProcessBuilder builder = new ProcessBuilder("shutdown", "/s", "/f", "/t", String.valueOf(delayInMinutes * 60), "/c", "\"SheepIt App has initiated this computer shutdown.\"");
|
||||||
Process process = builder.inheritIO().start();
|
Process process = builder.inheritIO().start();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user