Browse Source

fix nzbget percent

causefx 8 years ago
parent
commit
87208bc412
1 changed files with 1 additions and 1 deletions
  1. 1 1
      js/functions.js

+ 1 - 1
js/functions.js

@@ -2076,7 +2076,7 @@ function buildDownloaderItem(array, source, type='none'){
 					$.each(array.result, function(i,v) {
 					$.each(array.result, function(i,v) {
 						var action = (v.Status == "Downloading") ? 'pause' : 'resume';
 						var action = (v.Status == "Downloading") ? 'pause' : 'resume';
 						var actionIcon = (v.Status == "Downloading") ? 'pause' : 'play';
 						var actionIcon = (v.Status == "Downloading") ? 'pause' : 'play';
-						var percent = Math.floor((v.FileSizeMB - v.RemainingSizeMB) / v.FileSizeMB) * 100;
+						var percent = Math.floor((v.FileSizeMB - v.RemainingSizeMB) * 100 / v.FileSizeMB);
 						v.Category = (v.Category !== '') ? v.Category : 'Not Set';
 						v.Category = (v.Category !== '') ? v.Category : 'Not Set';
 						items += `
 						items += `
 						<tr>
 						<tr>