Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
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
  • Loading branch information
gitagogaming authored Jan 22, 2023
1 parent e889031 commit 7146d57
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions process_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ def the_task(self, process_name, the_process):
# print("This is process checked the is_running stuff", process_checked)

if process_checked == False:
## Setting Status to blank so it will trigger every time its checked

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))

for x in ['pid', 'username', 'cpu_percent', 'memory_percent', 'cmdline', 'create_time']:
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))

Expand Down

0 comments on commit 7146d57

Please sign in to comment.