From b7e1d6944ac4bfce6b9abb8fbef98891231e1514 Mon Sep 17 00:00:00 2001 From: ry4000 <154689120+ry4000@users.noreply.github.com> Date: Mon, 3 Nov 2025 14:21:18 +1100 Subject: [PATCH] R&Y: Update `hf mfdes bruteaid` Progress in `cmdhfmfdes.c` Testing Discord/@jump41's suggestion for implementation. Signed-off-by: ry4000 <154689120+ry4000@users.noreply.github.com> --- client/src/cmdhfmfdes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/cmdhfmfdes.c b/client/src/cmdhfmfdes.c index 35e428821..a3525d024 100644 --- a/client/src/cmdhfmfdes.c +++ b/client/src/cmdhfmfdes.c @@ -2232,7 +2232,7 @@ static int CmdHF14ADesBruteApps(const char *Cmd) { break; } - float progress = ((id - idStart) / (idEnd - idStart)); + float progress = 100.0 * (float)(id - idStart) / ((float)(idEnd - idStart)); PrintAndLogEx(INPLACE, "Progress " _YELLOW_("%0.1f") " %% current AID: %06X", progress, id); res = DesfireSelectAIDHexNoFieldOn(&dctx, id);