mirror of
https://github.com/transmission/transmission
synced 2025-03-10 22:22:58 +00:00
widen the torrent-id column for cleaner formatting (#840)
Under the current code, if there are over 9,999 torrents the format will shift over one space when bumping from 9999 to 10000.
This commit is contained in:
parent
309d97c578
commit
3cf3d6a22a
1 changed files with 3 additions and 3 deletions
|
@ -1446,7 +1446,7 @@ static void printTorrentList(tr_variant* top)
|
|||
double total_down = 0;
|
||||
char haveStr[32];
|
||||
|
||||
printf("%-4s %-4s %9s %-8s %6s %6s %-5s %-11s %s\n", "ID", "Done", "Have", "ETA", "Up", "Down", "Ratio",
|
||||
printf("%6s %-4s %9s %-8s %6s %6s %-5s %-11s %s\n", "ID", "Done", "Have", "ETA", "Up", "Down", "Ratio",
|
||||
"Status", "Name");
|
||||
|
||||
for (int i = 0, n = tr_variantListSize(list); i < n; ++i)
|
||||
|
@ -1508,7 +1508,7 @@ static void printTorrentList(tr_variant* top)
|
|||
errorMark = ' ';
|
||||
}
|
||||
|
||||
printf("%4d%c %4s %9s %-8s %6.1f %6.1f %5s %-11s %s\n", (int)id, errorMark, doneStr, haveStr, etaStr,
|
||||
printf("%6d%c %4s %9s %-8s %6.1f %6.1f %5s %-11s %s\n", (int)id, errorMark, doneStr, haveStr, etaStr,
|
||||
up / (double)tr_speed_K, down / (double)tr_speed_K, strlratio2(ratioStr, ratio, sizeof(ratioStr)),
|
||||
getStatusString(d, statusStr, sizeof(statusStr)), name);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue