mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-11-11 01:55:38 +08:00
fix type casting
This commit is contained in:
parent
1e1f1fcae4
commit
6ab52d55fa
1 changed files with 2 additions and 2 deletions
|
@ -3482,7 +3482,7 @@ static int CmdHF14AMfSmartBrute(const char *Cmd) {
|
||||||
PrintAndLogEx(INFO, "Running bruteforce stage %d", smart_mode_stage);
|
PrintAndLogEx(INFO, "Running bruteforce stage %d", smart_mode_stage);
|
||||||
|
|
||||||
if (msclock() - t1 > 0 && keys_checked > 0) {
|
if (msclock() - t1 > 0 && keys_checked > 0) {
|
||||||
PrintAndLogEx(INFO, "Current cracking speed (keys/s): %d",
|
PrintAndLogEx(INFO, "Current cracking speed (keys/s): %u",
|
||||||
keys_checked / ((msclock() - t1) / 1000));
|
keys_checked / ((msclock() - t1) / 1000));
|
||||||
|
|
||||||
t1 = msclock();
|
t1 = msclock();
|
||||||
|
@ -3508,7 +3508,7 @@ static int CmdHF14AMfSmartBrute(const char *Cmd) {
|
||||||
|
|
||||||
out:
|
out:
|
||||||
PrintAndLogEx(INFO, "Time in brute mode: " _YELLOW_("%.1fs") "\n", (float)((msclock() - t0) / 1000.0));
|
PrintAndLogEx(INFO, "Time in brute mode: " _YELLOW_("%.1fs") "\n", (float)((msclock() - t0) / 1000.0));
|
||||||
PrintAndLogEx(INFO, "Total keys checked: " _YELLOW_("%d") "\n", total_keys_checked);
|
PrintAndLogEx(INFO, "Total keys checked: " _YELLOW_("%u") "\n", total_keys_checked);
|
||||||
// check..
|
// check..
|
||||||
uint8_t found_keys = 0;
|
uint8_t found_keys = 0;
|
||||||
for (i = 0; i < sectorsCnt; ++i) {
|
for (i = 0; i < sectorsCnt; ++i) {
|
||||||
|
|
Loading…
Reference in a new issue