Skip to content
Snippets Groups Projects
Commit c721d330 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Merge branch 'dd_msg_reader_printf_percent_fix' into 'master'

DDMsgReader: %% should be used with printf() to show a percent sign.  "% " seemed to be showing <error> in some cases (but not always)

See merge request !491
parents 6717b6ff 50f97543
No related branches found
No related tags found
1 merge request!491DDMsgReader: %% should be used with printf() to show a percent sign. "% " seemed to be showing <error> in some cases (but not always)
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment