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:
ry4000
2025-11-03 14:49:00 +11:00
committed by GitHub
parent b7e1d6944a
commit 4bc64fe626
+3 -3
View File
@@ -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);
}
}