Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 28947a53a3 |
5
otp.c
5
otp.c
@@ -2948,10 +2948,9 @@ int handle_pads_menu(void) {
|
|||||||
|
|
||||||
for (int i = 0; i < pad_count; i++) {
|
for (int i = 0; i < pad_count; i++) {
|
||||||
// Display checksum with prefix underlined
|
// Display checksum with prefix underlined
|
||||||
printf("\033[4m%.*s\033[0m%s %-*s %-12s %.1f%%\n",
|
printf("\033[4m%.*s\033[0m%-*s %-12s %-12s %.1f%%\n",
|
||||||
prefix_lengths[i], pads[i].chksum, // Underlined prefix
|
prefix_lengths[i], pads[i].chksum, // Underlined prefix
|
||||||
pads[i].chksum + prefix_lengths[i], // Rest of checksum
|
20 - prefix_lengths[i], pads[i].chksum + prefix_lengths[i], // Rest of checksum with padding
|
||||||
20 - (int)strlen(pads[i].chksum), "", // Padding for alignment
|
|
||||||
pads[i].size_str,
|
pads[i].size_str,
|
||||||
pads[i].used_str,
|
pads[i].used_str,
|
||||||
pads[i].percentage);
|
pads[i].percentage);
|
||||||
|
|||||||
Reference in New Issue
Block a user