mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-05-12 11:18:11 -07:00
R&Y: Update Progress Interval in cmdhfmfdes.c
Testing to see if it is possible to increase the progress bar to two decimal points. Signed-off-by: ry4000 <154689120+ry4000@users.noreply.github.com>
This commit is contained in:
@@ -2232,14 +2232,14 @@ static int CmdHF14ADesBruteApps(const char *Cmd) {
|
||||
break;
|
||||
}
|
||||
|
||||
float progress = 100.0 * (float)(id - idStart) / ((float)(idEnd - idStart));
|
||||
PrintAndLogEx(INPLACE, "Progress " _YELLOW_("%0.1f") " %% current AID: %06X", progress, id);
|
||||
float progress = 100.00 * (float)(id - idStart) / ((float)(idEnd - idStart));
|
||||
PrintAndLogEx(INPLACE, "Progress " _YELLOW_("%0.01f") " %% current AID: %06X", progress, id);
|
||||
|
||||
res = DesfireSelectAIDHexNoFieldOn(&dctx, id);
|
||||
|
||||
if (res == PM3_SUCCESS) {
|
||||
printf("\33[2K\r"); // clear current line before printing
|
||||
PrintAndLogEx(SUCCESS, "Got new APPID " _GREEN_("%06X"), id);
|
||||
PrintAndLogEx(SUCCESS, "Found New DESFire Application ID " _GREEN_("%06X"), id);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user