more fucking around with the speed measurements.

This commit is contained in:
Charles Kerr
2008-11-08 02:49:04 +00:00
parent 1f60b88573
commit 42fe27c067
17 changed files with 158 additions and 136 deletions

View File

@@ -1507,8 +1507,8 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
if (![fStatusBar isHidden])
{
//set rates
float downloadRate, uploadRate;
tr_sessionGetSpeed(fLib, &downloadRate, &uploadRate);
float downloadRate = tr_sessionGetPieceSpeed( fLib, TR_DOWN );
float uploadRate = tr_sessionGetPieceSpeed( fLib, TR_UP );
[fTotalDLField setStringValue: [NSString stringForSpeed: downloadRate]];
[fTotalULField setStringValue: [NSString stringForSpeed: uploadRate]];