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

View file

@ -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();