Initialize cpuLoad to 0 (#46)
This commit is contained in:
parent
87ab7d39d4
commit
ae32a3f9f1
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ const queue = [];
|
||||||
|
|
||||||
if (isMainThread) {
|
if (isMainThread) {
|
||||||
const { v4: uuidv4 } = require("uuid");
|
const { v4: uuidv4 } = require("uuid");
|
||||||
let cpuLoad;
|
let cpuLoad = 0;
|
||||||
|
|
||||||
const getAverage = () => {
|
const getAverage = () => {
|
||||||
const cpus = os.cpus();
|
const cpus = os.cpus();
|
||||||
|
|
Loading…
Reference in a new issue