MCPcopy Create free account
hub / github.com/AstroPrint/AstroBox / pulse

Method pulse

src/astroprint/software.py:134–141  ·  view source on GitHub ↗
(self, owner)

Source from the content-addressed store, hash-verified

132 self._lastTotalReported = None
133
134 def pulse(self, owner):
135 if self.current_items != self._lastCurrentReported or self.total_items != self._lastTotalReported:
136 self._progressCb("sources_update", float(self.current_items) / float(self.total_items))
137 self._logger.info("Update progress item %d of %d" % (self.current_items, self.total_items))
138 self._lastCurrentReported = self.current_items
139 self._lastTotalReported = self.total_items
140
141 return True
142
143class SoftwareUpdater(threading.Thread):
144 updatePhaseProgressInfo = {

Callers

nothing calls this directly

Calls 1

_progressCbMethod · 0.80

Tested by

no test coverage detected