Skip to content

Elapsed_time update#2

Open
Commoneffort wants to merge 1 commit intojacklevin74:mainfrom
Commoneffort:patch-1
Open

Elapsed_time update#2
Commoneffort wants to merge 1 commit intojacklevin74:mainfrom
Commoneffort:patch-1

Conversation

@Commoneffort
Copy link

Added conditional check to ensure that elapsed_time is greater than zero before calculating hashes_per_second.

Added conditional check to ensure that elapsed_time is greater than zero before calculating hashes_per_second.
@jacklevin74
Copy link
Owner

if elapsed_time > 0:
    hashes_per_second = attempts / elapsed_time

=======
hashes_per_second = attempts / (elapsed_time + 1e-9)

main
this has been resolved with addition vs if()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants