return eta as signed integer

This commit is contained in:
orignal committed 2026-10-08 15:22:42 -04:00
1 parent 7332f68b76
commit e4dd33dc81
1 file changed
+1 -1
+1 -1
View File
@@ -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)