Added indexing progress indicator for hashrates, update logging

This commit is contained in:
nymkappa
2022-05-10 14:52:37 +02:00
parent 802e10e0a9
commit de7c4774ec
18 changed files with 78 additions and 38 deletions

View File

@@ -12,8 +12,8 @@ class LoadingIndicators {
this.progressChangedCallback = fn;
}
public setProgress(name: string, progressPercent: number) {
const newProgress = Math.round(progressPercent);
public setProgress(name: string, progressPercent: number, rounded: boolean = true) {
const newProgress = rounded === true ? Math.round(progressPercent) : progressPercent;
if (newProgress >= 100) {
delete this.loadingIndicators[name];
} else {