Update torrent-row.js (#5857)

This commit is contained in:
Rukario 2023-10-08 20:23:44 -07:00 committed by GitHub
parent 732465d533
commit f2fa47b7a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -42,13 +42,13 @@ const TorrentRendererHelper = {
if (t.needsMetaData()) {
classList.push('magnet');
percent = Math.round(t.getMetadataPercentComplete() * 100);
percent = t.getMetadataPercentComplete() * 100;
} else if (status === Torrent._StatusCheck) {
classList.push('verify');
percent = Math.round(t.getRecheckProgress() * 100);
percent = t.getRecheckProgress() * 100;
} else if (t.getLeftUntilDone() > 0) {
classList.push('leech');
percent = Math.round(t.getPercentDone() * 100);
percent = t.getPercentDone() * 100;
} else {
classList.push('seed');
const seed_ratio_limit = t.seedRatioLimit(controller);