aboutsummaryrefslogtreecommitdiff
path: root/src/Watcher/afk.py
diff options
context:
space:
mode:
authorLibravatar Vaishnav Deore <86405648+Waishnav@users.noreply.github.com>2022-11-14 20:18:17 +0530
committerLibravatar GitHub <noreply@github.com>2022-11-14 20:18:17 +0530
commit20fd09803001a7e6371360afedb3091dd9242d07 (patch)
tree3b46618374f8c6bb4dec0682ecdd65176a1c260c /src/Watcher/afk.py
parentca1d6e1cacb4b5e3106f556f99687bc3df5af86b (diff)
parent212a5aaf5c1b2b2b956d75c4ba66c95222e31683 (diff)
downloadshopno-os-log-sync-20fd09803001a7e6371360afedb3091dd9242d07.tar.gz
shopno-os-log-sync-20fd09803001a7e6371360afedb3091dd9242d07.zip
Merge pull request #38 from Waishnav/v2.0
v2.0 ready to use
Diffstat (limited to 'src/Watcher/afk.py')
-rwxr-xr-xsrc/Watcher/afk.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Watcher/afk.py b/src/Watcher/afk.py
index 41f8fe9..3d92068 100755
--- a/src/Watcher/afk.py
+++ b/src/Watcher/afk.py
@@ -15,7 +15,7 @@ def returned_from_afk(afk_active, timeout):
return has_returned
def is_afk(timeout):
- timeout = timeout * 60 * 1000 - 200 # minimizing 200 milisec error
+ timeout = timeout * 60 * 1000 - 100 # minimizing 100 milisec error
#If the AFK feature is installed
time_since_last_input = int(os.popen("xprintidle").read()[:-1])
if (time_since_last_input > timeout):