diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ogRest.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ogRest.py b/src/ogRest.py index 3f76053..64558a2 100644 --- a/src/ogRest.py +++ b/src/ogRest.py @@ -98,15 +98,15 @@ class ogThread(): ogRest.state = ThreadState.IDLE def check_vm_state_loop(ogRest): - POLLING_WAIT_TIME = 3 + POLLING_WAIT_TIME = 12 while True: + time.sleep(POLLING_WAIT_TIME) state = ogRest.operations.check_vm_state() installed_os = ogRest.operations.get_installed_os() if state == OgVM.State.STOPPED and \ ogRest.state == ThreadState.IDLE and \ len(installed_os) > 0: ogRest.operations.poweroff_host() - time.sleep(POLLING_WAIT_TIME) def poweroff(ogRest): time.sleep(2) |