Add progress percent to export table

This commit is contained in:
JonnyWong16 2020-10-15 21:56:20 -07:00
parent 39d6edd581
commit 44c643d7da
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
5 changed files with 72 additions and 16 deletions

View file

@ -336,6 +336,18 @@ String.prototype.toProperCase = function () {
});
};
function getPercent(value1, value2) {
value1 = parseFloat(value1) | 0
value2 = parseFloat(value2) | 0
var percent = 0;
if (value1 !== 0 && value2 !== 0) {
percent = (value1 / value2) * 100
}
return Math.round(percent)
}
function millisecondsToMinutes(ms, roundToMinute) {
if (ms > 0) {
var minutes = Math.floor(ms / 60000);