Skip to content

Commit 7146d57

Browse files
authored
Add files via upload
Fixed issue when program had an improperly formatted cmdline it caused plugin to crash Fixed issue for Process status not triggering properly other internal changes/fixes
1 parent e889031 commit 7146d57

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

process_checker.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ def the_task(self, process_name, the_process):
5555
# print("This is process checked the is_running stuff", process_checked)
5656

5757
if process_checked == False:
58+
## Setting Status to blank so it will trigger every time its checked
59+
60+
TPClient.createState(stateId=PLUGIN_ID + f".state.{self.process_name}.process_info.status", description=f"PM | {self.process_name} - status", value="", parentGroup=str(self.process_name))
61+
5862
for x in ['pid', 'username', 'cpu_percent', 'memory_percent', 'cmdline', 'create_time']:
5963
TPClient.createState(stateId=PLUGIN_ID + f".state.{self.process_name}.process_info.{x}", description=f"PM | {self.process_name} - {x}", value="", parentGroup=str(self.process_name))
6064

0 commit comments

Comments
 (0)