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

Method draw

lib/utils/progress.py:89–97  ·  view source on GitHub ↗

This method draws the progress bar if it has changed

(self, eta=None)

Source from the content-addressed store, hash-verified

87 self.draw(eta)
88
89 def draw(self, eta=None):
90 """
91 This method draws the progress bar if it has changed
92 """
93
94 dataToStdout("\r%s %d/%d%s" % (self._progBar, self._amount, self._max, (" (ETA %s)" % (self._convertSeconds(int(eta)) if eta is not None else "??:??"))))
95 if self._amount >= self._max:
96 dataToStdout("\r%s\r" % (" " * self._width))
97 kb.prependFlag = False
98
99 def __str__(self):
100 """

Callers 1

progressMethod · 0.95

Calls 2

_convertSecondsMethod · 0.95
dataToStdoutFunction · 0.90

Tested by

no test coverage detected