mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +00:00
(trunk daemon) #3547 "Regression: wrong speed display in transmission-remote and web ui" -- fix peer-info regression reported by gunzip
This commit is contained in:
parent
acfec1c76f
commit
1fbe8364bf
1 changed files with 5 additions and 5 deletions
|
@ -1085,20 +1085,20 @@ printPeersImpl( tr_benc * peers )
|
|||
{
|
||||
double progress;
|
||||
const char * address, * client, * flagstr;
|
||||
double rateToClient, rateToPeer;
|
||||
int64_t rateToClient, rateToPeer;
|
||||
tr_benc * d = tr_bencListChild( peers, i );
|
||||
|
||||
if( tr_bencDictFindStr( d, "address", &address )
|
||||
&& tr_bencDictFindStr( d, "clientName", &client )
|
||||
&& tr_bencDictFindReal( d, "progress", &progress )
|
||||
&& tr_bencDictFindStr( d, "flagStr", &flagstr )
|
||||
&& tr_bencDictFindReal( d, "rateToClient", &rateToClient )
|
||||
&& tr_bencDictFindReal( d, "rateToPeer", &rateToPeer ) )
|
||||
&& tr_bencDictFindInt( d, "rateToClient", &rateToClient )
|
||||
&& tr_bencDictFindInt( d, "rateToPeer", &rateToPeer ) )
|
||||
{
|
||||
printf( "%-20s %-12s %-5.1f %6.1f %6.1f %s\n",
|
||||
address, flagstr, (progress*100.0),
|
||||
rateToClient,
|
||||
rateToPeer,
|
||||
rateToClient / (double)tr_speed_K,
|
||||
rateToPeer / (double)tr_speed_K,
|
||||
client );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue