Skip to content

Commit

Permalink
Update plugin.py
Browse files Browse the repository at this point in the history
  • Loading branch information
pipiche38 authored Nov 13, 2023
1 parent f006331 commit 0a87a02
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -1667,8 +1667,9 @@ def uninstall_Z4D_to_domoticz_custom_ui():
def do_python_garbage_collection( self ):
# Garbage collector ( experimental for now)
if self.internalHB % (3600 // HEARTBEAT) == 0:
self.log.logging("Plugin", "Debug", "Garbage Collection status: %s" % str(gc.get_count()))
self.log.logging("Plugin", "Debug", "Garbage Collection triggered: %s" % str(gc.collect()))
self.log.logging("Garbage", "Debug", "Garbage Collection status: %s" % str(gc.get_count()) )
# self.log.logging("Garbage", "Debug", "Garbage Collection triggered: %s" % str(gc.collect()) )
self.log.logging("Garbage", "Debug", "Garbage collection statistics: %s" % str( gc.get_stats()) )

def _check_if_busy(self):
busy_ = self.ControllerLink.loadTransmit() >= MAX_FOR_ZIGATE_BUZY
Expand Down

0 comments on commit 0a87a02

Please sign in to comment.