Merge branch 'integracao_wa_oficial_el_editing_4_test' into integracao_wa_oficial_sos_el

adriano 2024-02-08 09:36:43 -03:00
commit aa2ee96412
2 changed files with 27 additions and 28 deletions

View File

@ -90,33 +90,33 @@ const monitor = async () => {
}
// exec("df -h /", (error: any, stdout: any, stderr: any) => {
exec("df -h /", (error: any, stdout: any, stderr: any) => {
// if (error) {
// console.log(`exec error: ${error.message}`);
// return;
// }
// if (stderr) {
// console.log(`exec stderr: ${stderr}`);
// return;
// }
if (error) {
console.log(`exec error: ${error.message}`);
return;
}
if (stderr) {
console.log(`exec stderr: ${stderr}`);
return;
}
// stdout = stdout.split(/\r?\n/)
// stdout = stdout[1].trim().split(/\s+/)
stdout = stdout.split(/\r?\n/)
stdout = stdout[1].trim().split(/\s+/)
// // DISK SPACE MONITORING
// const io = getIO();
// io.emit("diskSpaceMonit", {
// action: "update",
// diskSpace: {
// size: stdout[1],
// used: stdout[2],
// available: stdout[3],
// use: stdout[4]
// }
// });
// DISK SPACE MONITORING
const io = getIO();
io.emit("diskSpaceMonit", {
action: "update",
diskSpace: {
size: stdout[1],
used: stdout[2],
available: stdout[3],
use: stdout[4]
}
});
// });
});

View File

@ -321,7 +321,6 @@ const MessageInput = ({ ticketStatus }) => {
setTabOption('open')
}
if (templateParams) {
for (let key in templateParams) {
if (templateParams.hasOwnProperty(key)) {