mirror of
https://github.com/transmission/transmission
synced 2024-12-25 17:17:31 +00:00
(trunk daemon) tweak the "transmission-remote --info" display for downloading/seeding time
This commit is contained in:
parent
b6dde3dff6
commit
44f25c27dc
1 changed files with 8 additions and 8 deletions
|
@ -847,10 +847,6 @@ printDetails( tr_benc * top )
|
||||||
|
|
||||||
if( tr_bencDictFindInt( t, "eta", &i ) )
|
if( tr_bencDictFindInt( t, "eta", &i ) )
|
||||||
printf( " ETA: %s\n", tr_strltime( buf, i, sizeof( buf ) ) );
|
printf( " ETA: %s\n", tr_strltime( buf, i, sizeof( buf ) ) );
|
||||||
if( tr_bencDictFindInt( t, "secondsDownloading", &i ) && ( i > 0 ) )
|
|
||||||
printf( " Time Downloading: %s\n", tr_strltime( buf, i, sizeof( buf ) ) );
|
|
||||||
if( tr_bencDictFindInt( t, "secondsSeeding", &i ) && ( i > 0 ) )
|
|
||||||
printf( " Time Seeding: %s\n", tr_strltime( buf, i, sizeof( buf ) ) );
|
|
||||||
if( tr_bencDictFindInt( t, "rateDownload", &i ) )
|
if( tr_bencDictFindInt( t, "rateDownload", &i ) )
|
||||||
printf( " Download Speed: %s\n", tr_formatter_speed_KBps( buf, i/(double)tr_speed_K, sizeof( buf ) ) );
|
printf( " Download Speed: %s\n", tr_formatter_speed_KBps( buf, i/(double)tr_speed_K, sizeof( buf ) ) );
|
||||||
if( tr_bencDictFindInt( t, "rateUpload", &i ) )
|
if( tr_bencDictFindInt( t, "rateUpload", &i ) )
|
||||||
|
@ -952,23 +948,27 @@ printDetails( tr_benc * top )
|
||||||
if( tr_bencDictFindInt( t, "addedDate", &i ) && i )
|
if( tr_bencDictFindInt( t, "addedDate", &i ) && i )
|
||||||
{
|
{
|
||||||
const time_t tt = i;
|
const time_t tt = i;
|
||||||
printf( " Date added: %s", ctime( &tt ) );
|
printf( " Date added: %s", ctime( &tt ) );
|
||||||
}
|
}
|
||||||
if( tr_bencDictFindInt( t, "doneDate", &i ) && i )
|
if( tr_bencDictFindInt( t, "doneDate", &i ) && i )
|
||||||
{
|
{
|
||||||
const time_t tt = i;
|
const time_t tt = i;
|
||||||
printf( " Date finished: %s", ctime( &tt ) );
|
printf( " Date finished: %s", ctime( &tt ) );
|
||||||
}
|
}
|
||||||
if( tr_bencDictFindInt( t, "startDate", &i ) && i )
|
if( tr_bencDictFindInt( t, "startDate", &i ) && i )
|
||||||
{
|
{
|
||||||
const time_t tt = i;
|
const time_t tt = i;
|
||||||
printf( " Date started: %s", ctime( &tt ) );
|
printf( " Date started: %s", ctime( &tt ) );
|
||||||
}
|
}
|
||||||
if( tr_bencDictFindInt( t, "activityDate", &i ) && i )
|
if( tr_bencDictFindInt( t, "activityDate", &i ) && i )
|
||||||
{
|
{
|
||||||
const time_t tt = i;
|
const time_t tt = i;
|
||||||
printf( " Latest activity: %s", ctime( &tt ) );
|
printf( " Latest activity: %s", ctime( &tt ) );
|
||||||
}
|
}
|
||||||
|
if( tr_bencDictFindInt( t, "secondsDownloading", &i ) && ( i > 0 ) )
|
||||||
|
printf( " Downloading Time: %s\n", tr_strltime( buf, i, sizeof( buf ) ) );
|
||||||
|
if( tr_bencDictFindInt( t, "secondsSeeding", &i ) && ( i > 0 ) )
|
||||||
|
printf( " Seeding Time: %s\n", tr_strltime( buf, i, sizeof( buf ) ) );
|
||||||
printf( "\n" );
|
printf( "\n" );
|
||||||
|
|
||||||
printf( "ORIGINS\n" );
|
printf( "ORIGINS\n" );
|
||||||
|
|
Loading…
Reference in a new issue