Initialize cpuLoad to 0 (#46)

This commit is contained in:
adroitwhiz 2021-01-03 00:02:41 -05:00 committed by GitHub
parent 87ab7d39d4
commit ae32a3f9f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ const queue = [];
if (isMainThread) {
const { v4: uuidv4 } = require("uuid");
let cpuLoad;
let cpuLoad = 0;
const getAverage = () => {
const cpus = os.cpus();