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:
parent
adbee53efa
commit
f34cd7299f
2 changed files with 2 additions and 2 deletions
|
@ -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 );
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue