mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-22 11:02:26 +00:00
return eta as signed integer
This commit is contained in:
1 parent
7332f68b76
commit
e4dd33dc81
1 file changed
+1
-1
@@ -404,7 +404,7 @@ namespace torrents
|
||||
{ "eta", [](std::shared_ptr<Torrent> torrent)
|
||||
{
|
||||
auto downloadRate = torrent->GetDownloadRate ();
|
||||
return boost::json::value (downloadRate ? torrent->GetLeft ()/downloadRate : -2);
|
||||
return boost::json::value (downloadRate ? (int64_t)(torrent->GetLeft ()/downloadRate) : -2);
|
||||
}
|
||||
},
|
||||
{ "uploadRatio", [](std::shared_ptr<Torrent> torrent)
|
||||
|
||||
Reference in new issue
Block a user