Merge pull request #404 from imebeh/fix_recheck_progress

修正 校验进度条宽度计算错误
This commit is contained in:
栽培者 2020-04-22 20:54:50 +08:00 committed by GitHub
commit 5187ec09c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2471,7 +2471,7 @@ var system = {
// 目前只有status==_status.download时 torrent 不是对象
// 检查进度条长度保持在已完成的范围内
var percentCheckText = parseFloat(torrent.recheckProgress * 100).toFixed(2);
var percentCheckView = parseFloat(progress * 100 * torrent.recheckProgress).toFixed(2);
var percentCheckView = parseFloat(progress * torrent.recheckProgress).toFixed(2);
return '<div class="torrent-progress" title="' + progress + '%">'+
'<div class="torrent-progress-text" style="z-index:2;">' + percentCheckText + '%</div>'+
'<div class="torrent-progress-bar torrent-progress-seed" style="width:' + percentCheckView + '%;z-index:1;opacity:0.7;"></div>'+