Don't compute percent if we already know it's 100

This commit is contained in:
Will 2021-03-26 21:11:32 +10:00
parent 176fa72e5f
commit 87c5c02bbc

View File

@ -320,8 +320,7 @@ class PatchContainer {
loadPatch(this, self, patcher);
// show patches matched for 100% - helps identify which version is loaded
var valid = patcher.validPatches;
var percent = (valid / patcher.totalPatches * 100).toFixed(1);
self.matchSuccessText[i].text(' ' + valid + ' of ' + patcher.totalPatches + ' patches matched (' + percent + '%) ');
self.matchSuccessText[i].text(' ' + valid + ' of ' + valid + ' patches matched (100%) ');
}
}