Fix ShowSystemLoad

This commit is contained in:
Raven Scott 2023-05-02 14:38:57 +02:00 committed by MrTuxedo
parent b1c1f6995a
commit f272839ab1
1 changed files with 1 additions and 1 deletions

View File

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