MCPcopy
hub / github.com/borgbackup/borg / progress

Method progress

src/borg/helpers/progress.py:64–71  ·  view source on GitHub ↗
(self, current=None, increase=1)

Source from the content-addressed store, hash-verified

62 super().__init__(msgid=msgid)
63
64 def progress(self, current=None, increase=1):
65 if current is not None:
66 self.counter = current
67 pct = self.counter * 100 / self.total
68 self.counter += increase
69 if pct >= self.trigger_at:
70 self.trigger_at += self.step
71 return pct
72
73 def show(self, current=None, increase=1, info=None):
74 """

Callers 1

showMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected