Fix ShowSystemLoad
This commit is contained in:
parent
c0ab1541e1
commit
a099502f1a
@ -197,7 +197,7 @@ async function generateResponse(conversation, message) {
|
|||||||
let time = 0
|
let time = 0
|
||||||
// define a function that shows the system load percentage and updates the message
|
// define a function that shows the system load percentage and updates the message
|
||||||
const showSystemLoad = async () => {
|
const showSystemLoad = async () => {
|
||||||
time = time + process.env.REFRESH_INTERVAL;
|
time = Number(time) + Number(process.env.REFRESH_INTERVAL);
|
||||||
cpuStat.usagePercent(function(err, percent, seconds) {
|
cpuStat.usagePercent(function(err, percent, seconds) {
|
||||||
if (err) {
|
if (err) {
|
||||||
return console.log(err);
|
return console.log(err);
|
||||||
|
Loading…
Reference in New Issue
Block a user