CHG: trying to figure out why I can't get the seconds out..

This commit is contained in:
iceman1001 2016-07-28 21:48:53 +02:00
parent 53b3c3e816
commit 1e2bb9c9f4

View file

@ -1687,12 +1687,12 @@ static void brute_force(void)
time(&end); time(&end);
double elapsed_time = difftime(end, start); double elapsed_time = difftime(end, start);
PrintAndLog(""); PrintAndLog("ICE %.f seconds", elapsed_time);
if(keys_found){ if(keys_found){
PrintAndLog("Success! Tested %"PRIu64" states, found %u keys after %.f seconds", total_states_tested, keys_found, elapsed_time); PrintAndLog("Success! Tested %"PRIu32" states, found %u keys after %.f seconds", total_states_tested, keys_found, elapsed_time);
PrintAndLog("\nFound key: %012"PRIx64"\n", foundkey); PrintAndLog("\nFound key: %012"PRIx64"\n", foundkey);
} else { } else {
PrintAndLog("Fail! Tested %"PRIu64" states, in %.f seconds", total_states_tested, elapsed_time); PrintAndLog("Fail! Tested %"PRIu32" states, in %.f seconds", total_states_tested, elapsed_time);
} }
// reset this counter for the next call // reset this counter for the next call
nonces_to_bruteforce = 0; nonces_to_bruteforce = 0;