1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-23 16:24:02 +00:00

fix incorrect eta value

This commit is contained in:
Mitchell Livingston 2008-04-07 05:00:07 +00:00
parent adbee53efa
commit f34cd7299f
2 changed files with 2 additions and 2 deletions

View file

@ -664,7 +664,7 @@ tr_torrentStat( tr_torrent * tor )
else if( s->rateDownload < 0.1 )
s->eta = TR_ETA_UNKNOWN;
else
s->eta = s->leftUntilDone / (s->rateDownload / 1024.0);
s->eta = s->leftUntilDone / s->rateDownload / 1024.0;
s->ratio = tr_getRatio( s->uploadedEver,
s->downloadedEver ? s->downloadedEver : s->haveValid );

View file

@ -54,7 +54,7 @@
convertedSize = size / 1048576.0;
unit = NSLocalizedString(@"MB", "File size - megabytes");
}
else if (size < 1099511627776)
else if (size < 1099511627776.0)
{
convertedSize = size / 1073741824.0;
unit = NSLocalizedString(@"GB", "File size - gigabytes");