Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 80425c9

Browse files
committed
Minor adjustment to ETA feature
1 parent 8f74fe2 commit 80425c9

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

lib/core/progress.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ class ProgressBar:
3535
def __init__(self, minValue=0, maxValue=10, totalWidth=54):
3636
self.__progBar = "[]"
3737
self.__oldProgBar = ""
38-
self.__min = minValue
39-
self.__max = maxValue
40-
self.__span = maxValue - minValue
38+
self.__min = int(minValue)
39+
self.__max = int(maxValue)
40+
self.__span = self.__max - self.__min
4141
self.__width = totalWidth
4242
self.__amount = 0
4343
self.update()

lib/request/inject.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ def __goInference(payload, expression):
6767
count, value = bisection(payload, expression, length=length)
6868
duration = int(time.time() - start)
6969

70+
if conf.eta and length:
71+
infoMsg = "retrieved: %s" % value
72+
logger.info(infoMsg)
73+
7074
infoMsg = "performed %d queries in %d seconds" % (count, duration)
7175
logger.info(infoMsg)
7276

0 commit comments

Comments
 (0)