mirror of
https://github.com/two-torial/webpatcher.git
synced 2025-02-20 20:21:39 +01:00
Don't compute percent if we already know it's 100
This commit is contained in:
parent
176fa72e5f
commit
87c5c02bbc
@ -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%) ');
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user