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

Commit bd2a86d

Browse files
committed
Fix syntax error in mod_cpuinfo
1 parent 8eb160a commit bd2a86d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/classes/cpuinfo.class.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class Cpuinfo {
4141
}
4242
waitForCoresDOM().then(() => {
4343
for (var i = 0; i < data.cores; i++) {
44-
if (i >= 4) break;
44+
if (i >= 4) return;
4545

4646
// Create TimeSeries
4747
this.series.push(new TimeSeries());
@@ -85,7 +85,7 @@ class Cpuinfo {
8585
updateInfo() {
8686
this.si.currentLoad((data) => {
8787
data.cpus.forEach((e, i) => {
88-
if (i >= 4) break;
88+
if (i >= 4) return;
8989
this.series[i].append(new Date().getTime(), e.load);
9090
});
9191
});

0 commit comments

Comments
 (0)