diff options
author | 2022-11-14 20:18:17 +0530 | |
---|---|---|
committer | 2022-11-14 20:18:17 +0530 | |
commit | 20fd09803001a7e6371360afedb3091dd9242d07 (patch) | |
tree | 3b46618374f8c6bb4dec0682ecdd65176a1c260c /src/Watcher/afk.py | |
parent | ca1d6e1cacb4b5e3106f556f99687bc3df5af86b (diff) | |
parent | 212a5aaf5c1b2b2b956d75c4ba66c95222e31683 (diff) | |
download | shopno-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-x | src/Watcher/afk.py | 2 |
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): |