From 27365936982c5e3fcab51f5d0f93ff4feea687ef Mon Sep 17 00:00:00 2001 From: Waishnav Date: Tue, 12 Jul 2022 16:17:39 +0530 Subject: Removing EWMH module as a dependancy (causing more RAM consumption over the time) --- src/Watcher/analysis.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Watcher/analysis.py') 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(): -- cgit v1.2.3