mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-23 06:55:08 +01:00
Add an explaining comment
This commit is contained in:
parent
f2ec433cc2
commit
feadfb86a0
1 changed files with 2 additions and 0 deletions
|
@ -15,6 +15,8 @@ public class OSXStandbyModeDisabler {
|
|||
long pid = ProcessHandle.current().pid();
|
||||
try {
|
||||
String[] params = {"/usr/bin/caffeinate", "-w", "" + pid};
|
||||
|
||||
// we only start the process. caffeinate blocks until we exit.
|
||||
new ProcessBuilder(params).start();
|
||||
log.info("disabled power management via " + String.join(" ", params));
|
||||
} catch (IOException e) {
|
||||
|
|
Loading…
Add table
Reference in a new issue