From 50f97543aa1e8f9ddfb06d120f034dd793da44a6 Mon Sep 17 00:00:00 2001
From: Eric Oulashin <eric.oulashin@gmail.com>
Date: Sun, 12 Jan 2025 13:35:40 -0800
Subject: [PATCH] DDMsgReader: %% should be used with printf() to show a
 percent sign.  "% " seemed to be showing <error> in some cases (but not
 always)

---
 xtrn/DDMsgReader/DDMsgReader.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/xtrn/DDMsgReader/DDMsgReader.js b/xtrn/DDMsgReader/DDMsgReader.js
index 541e2ba2c6..c50bef5f68 100644
--- a/xtrn/DDMsgReader/DDMsgReader.js
+++ b/xtrn/DDMsgReader/DDMsgReader.js
@@ -16820,7 +16820,7 @@ function DigDistMsgReader_IndexedModeChooseSubBoard(pClearScreen, pDrawMenu, pDi
 			// Calculate & display progress percentage (every other sub-board)
 			var progressPercentage = numSubBoards / newMsgWidthObj.numSubBoards * 100.0;
 			if (numSubBoards % 2 == 0)
-				printf("\rLoading: %0.2f%  ", progressPercentage);
+				printf("\rLoading: %0.2f%%  ", progressPercentage);
 
 			var itemInfo = this.GetIndexedModeSubBoardMenuItemTextAndInfo(msg_area.grp_list[grpIdx].sub_list[subIdx].code);
 			// If configured to only show sub-boards with new messages and this sub-board
@@ -16859,7 +16859,7 @@ function DigDistMsgReader_IndexedModeChooseSubBoard(pClearScreen, pDrawMenu, pDi
 		}
 	}
 	// For end of progress reporting
-	printf("\rLoading: 100.0%  \r\n");
+	console.print("\rLoading: 100.00%  \r\n");
 	if (totalNewMsgs > 0)
 		console.line_counter = 0; // To prevent a pause before the index mode sub-board menu comes up
 	// If there are no items on the menu, then show a message and return
-- 
GitLab