mirror of
https://github.com/transmission/transmission
synced 2025-01-01 20:45:14 +00:00
Merge pull request #247 from cmskog/make-room-for-ipv6-addr-in-remote
Enlarge IP address column in transmission-remote
This commit is contained in:
commit
6ea6f630dc
1 changed files with 2 additions and 2 deletions
|
@ -1264,7 +1264,7 @@ static void printFileList(tr_variant* top)
|
||||||
static void printPeersImpl(tr_variant* peers)
|
static void printPeersImpl(tr_variant* peers)
|
||||||
{
|
{
|
||||||
int i, n;
|
int i, n;
|
||||||
printf("%-20s %-12s %-5s %-6s %-6s %s\n", "Address", "Flags", "Done", "Down", "Up", "Client");
|
printf("%-40s %-12s %-5s %-6s %-6s %s\n", "Address", "Flags", "Done", "Down", "Up", "Client");
|
||||||
|
|
||||||
for (i = 0, n = tr_variantListSize(peers); i < n; ++i)
|
for (i = 0, n = tr_variantListSize(peers); i < n; ++i)
|
||||||
{
|
{
|
||||||
|
@ -1277,7 +1277,7 @@ static void printPeersImpl(tr_variant* peers)
|
||||||
tr_variantDictFindReal(d, TR_KEY_progress, &progress) && tr_variantDictFindStr(d, TR_KEY_flagStr, &flagstr, NULL) &&
|
tr_variantDictFindReal(d, TR_KEY_progress, &progress) && tr_variantDictFindStr(d, TR_KEY_flagStr, &flagstr, NULL) &&
|
||||||
tr_variantDictFindInt(d, TR_KEY_rateToClient, &rateToClient) && tr_variantDictFindInt(d, TR_KEY_rateToPeer, &rateToPeer))
|
tr_variantDictFindInt(d, TR_KEY_rateToClient, &rateToClient) && tr_variantDictFindInt(d, TR_KEY_rateToPeer, &rateToPeer))
|
||||||
{
|
{
|
||||||
printf("%-20s %-12s %-5.1f %6.1f %6.1f %s\n", address, flagstr, (progress * 100.0), rateToClient / (double)tr_speed_K,
|
printf("%-40s %-12s %-5.1f %6.1f %6.1f %s\n", address, flagstr, (progress * 100.0), rateToClient / (double)tr_speed_K,
|
||||||
rateToPeer / (double)tr_speed_K, client);
|
rateToPeer / (double)tr_speed_K, client);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue