From a9eabba137dca427529efd4f979692e2162c6476 Mon Sep 17 00:00:00 2001
From: Nikos Kouremenos <kourem@gmail.com>
Date: Sun, 11 Sep 2005 00:07:58 +0000
Subject: [PATCH] comments

---
 src/common/sleepy.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/common/sleepy.py b/src/common/sleepy.py
index 54582a9417..89b9403ff5 100644
--- a/src/common/sleepy.py
+++ b/src/common/sleepy.py
@@ -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:
-- 
GitLab