From ae32a3f9f1908e6fa7c820bc9cc53fde90947fcf Mon Sep 17 00:00:00 2001 From: adroitwhiz Date: Sun, 3 Jan 2021 00:02:41 -0500 Subject: [PATCH] Initialize cpuLoad to 0 (#46) --- api/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/index.js b/api/index.js index 396bee6..15fe2d8 100644 --- a/api/index.js +++ b/api/index.js @@ -21,7 +21,7 @@ const queue = []; if (isMainThread) { const { v4: uuidv4 } = require("uuid"); - let cpuLoad; + let cpuLoad = 0; const getAverage = () => { const cpus = os.cpus();