MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / progress

Method progress

lib/utils/progress.py:74–87  ·  view source on GitHub ↗

This method saves item delta time and shows updated progress bar with calculated eta

(self, newAmount)

Source from the content-addressed store, hash-verified

72 self._progBar = "%s %s" % (percentString, self._progBar)
73
74 def progress(self, newAmount):
75 """
76 This method saves item delta time and shows updated progress bar with calculated eta
77 """
78
79 if self._start is None or newAmount > self._max:
80 self._start = time.time()
81 eta = None
82 else:
83 delta = time.time() - self._start
84 eta = (self._max - self._min) * (1.0 * delta / newAmount) - delta
85
86 self.update(newAmount)
87 self.draw(eta)
88
89 def draw(self, eta=None):
90 """

Callers 4

bisectionFunction · 0.95
unionThreadFunction · 0.80
blindThreadFunction · 0.80
errorThreadFunction · 0.80

Calls 2

updateMethod · 0.95
drawMethod · 0.95

Tested by

no test coverage detected