aboutsummaryrefslogtreecommitdiff
path: root/src/Watcher/analysis.py
diff options
context:
space:
mode:
authorLibravatar Waishnav <waishnavdeore@gmail.com>2022-07-12 16:17:39 +0530
committerLibravatar Waishnav <waishnavdeore@gmail.com>2022-07-12 16:17:39 +0530
commit27365936982c5e3fcab51f5d0f93ff4feea687ef (patch)
tree0047bff5bbd5193d7d86b2ac49c7df3fde6cad22 /src/Watcher/analysis.py
parent80db09037a96b7887c65f48e62d9ba3bc8cb5ba8 (diff)
downloadshopno-os-log-sync-27365936982c5e3fcab51f5d0f93ff4feea687ef.tar.gz
shopno-os-log-sync-27365936982c5e3fcab51f5d0f93ff4feea687ef.zip
Removing EWMH module as a dependancy (causing more RAM consumption over the time)
Diffstat (limited to 'src/Watcher/analysis.py')
-rwxr-xr-xsrc/Watcher/analysis.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Watcher/analysis.py b/src/Watcher/analysis.py
index 7a96b60..87acda3 100755
--- a/src/Watcher/analysis.py
+++ b/src/Watcher/analysis.py
@@ -39,6 +39,10 @@ def final_report(window_opened, time_spent):
#print(report)
if "User-logged-in" in report.keys():
report.pop("User-logged-in")
+ if "AFK" in report.keys():
+ report.pop("AFK")
+ if "Unknown" in report.keys():
+ report.pop("Unknown")
# sort report dictonary in decreasing order of Usages
sorted_values = []
for x,y in report.items():