From f272839ab18de67dcdebbc2d2ccb4c146406fb38 Mon Sep 17 00:00:00 2001 From: Raven Scott Date: Tue, 2 May 2023 14:38:57 +0200 Subject: [PATCH] Fix ShowSystemLoad --- llamabot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llamabot.js b/llamabot.js index cf6ad65..7e159e8 100644 --- a/llamabot.js +++ b/llamabot.js @@ -197,7 +197,7 @@ async function generateResponse(conversation, message) { let time = 0 // define a function that shows the system load percentage and updates the message const showSystemLoad = async () => { - time = time + process.env.REFRESH_INTERVAL; + time = Number(time) + Number(process.env.REFRESH_INTERVAL); cpuStat.usagePercent(function(err, percent, seconds) { if (err) { return console.log(err);