Update start.py

This commit is contained in:
MH_ProDev 2022-03-22 15:16:40 +04:30 committed by GitHub
parent 56b9d549d3
commit 82b632e030
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -1340,6 +1340,7 @@ if __name__ == '__main__':
method = one
host = None
port= None
url = None
event = Event()
event.clear()
@ -1470,7 +1471,7 @@ if __name__ == '__main__':
while time() < ts + timer:
logger.debug(f'{bcolors.WARNING}Target:{bcolors.OKBLUE} %s,{bcolors.WARNING} Port:{bcolors.OKBLUE} %s,{bcolors.WARNING} Method:{bcolors.OKBLUE} %s{bcolors.WARNING} PPS:{bcolors.OKBLUE} %s,{bcolors.WARNING} BPS:{bcolors.OKBLUE} %s / %d%%' %
(target or url.human_repr(),
port,
port or (url.port or 80),
method,
Tools.humanformat(int(REQUESTS_SENT)),
Tools.humanbytes(int(BYTES_SEND)),