diff options
author | 2022-07-12 16:17:39 +0530 | |
---|---|---|
committer | 2022-07-12 16:17:39 +0530 | |
commit | 27365936982c5e3fcab51f5d0f93ff4feea687ef (patch) | |
tree | 0047bff5bbd5193d7d86b2ac49c7df3fde6cad22 /src/Watcher/analysis.py | |
parent | 80db09037a96b7887c65f48e62d9ba3bc8cb5ba8 (diff) | |
download | shopno-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-x | src/Watcher/analysis.py | 4 |
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(): |