Skip to content
Snippets Groups Projects
Commit a9eabba1 authored by nkour's avatar nkour
Browse files

comments

parent e7345baf
No related branches found
No related tags found
No related merge requests found
......@@ -48,10 +48,13 @@ class Sleepy:
self.state = STATE_UNKNOWN
def poll(self):
'''checks to see if we should change state'''
if not SUPPORTED:
return False
idleTime = idle.getIdleSec()
# xa is stronger than away so check for xa first
if idleTime > self.xa_interval:
self.state = STATE_XA
elif idleTime > self.away_interval:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment