add %age done

This commit is contained in:
Mystikfluu 2023-05-27 22:07:43 +02:00
parent fa228bda5a
commit 86a5d97efc

View File

@ -138,7 +138,7 @@ while packets > 0 or serverhash == None:
if serverhash == None:
UDPClientSocket.sendto(str.encode(f"{message}:"), serverAddressPort)
download_speed = (total_packets - packets)/(time.time()-time_started if (time.time()-time_started)!=0 else 1)*max_payload
print(f'{total_packets - packets}/{total_packets} | {convert_to_highest_speed(download_speed)}'+'\t'*5, end='\r')
print(f'{total_packets - packets}/{total_packets} | {round((total_packets - packets)/total_packets*100,2)}% | {convert_to_highest_speed(download_speed)}'+'\t'*5, end='\r')