Skip to content
This repository was archived by the owner on Oct 22, 2021. It is now read-only.

Commit 71ce048

Browse files
authored
✏️ Fix critical syntax error
1 parent b7143e3 commit 71ce048

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/classes/filesystem.class.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,12 +271,12 @@ class FilesystemDisplay {
271271
this.space_bar.text.innerHTML = `Mount <strong>${this.fsBlock.mount}</strong> used <strong>${Math.round(this.fsBlock.use)}%</strong>`;
272272
this.space_bar.bar.value = Math.round(this.fsBlock.use);
273273
} else if (!isNaN((this.fsBlock.size / this.fsBlock.used) * 100)) {
274-
let usage = Math.round(this.fsBlock.size / this.fsBlock.used) * 100);
274+
let usage = Math.round((this.fsBlock.size / this.fsBlock.used) * 100);
275275

276276
this.space_bar.text.innerHTML = `Mount <strong>${this.fsBlock.mount}</strong> used <strong>${usage}%</strong>`;
277277
this.space_bar.bar.value = usage;
278278
} else {
279-
this.space_bar.text.innerHTML = `Could not calculate mountpoint usage.`;
279+
this.space_bar.text.innerHTML = "Could not calculate mountpoint usage.";
280280
this.space_bar.bar.value = 100;
281281
}
282282
};

0 commit comments

Comments
 (0)