Skip to content

Commit

Permalink
Correction of null values]
Browse files Browse the repository at this point in the history
  • Loading branch information
bgelatti committed Nov 25, 2024
1 parent bfbadfe commit a944c54
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/tagoio-integration/src/back/RealtimeConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ async function emitStartData(token: string, connID: string) {
core.getSummary(),
helpers.getComputerUsage(),
]);

const computerUsage = removeNullValues(data[1]);
const startData = {
machine_id: getMachineID(),
local_ips: getLocalIPs().join(", "),
Expand All @@ -112,7 +114,7 @@ async function emitStartData(token: string, connID: string) {
tcore_start_time: tcoreStartTime,
tcore_version: "0.7.0",
summary: data[0],
computer_usage: removeNullValues(data[1]),
computer_usage: computerUsage,
last_ping: Date.now(),
};
const response = await sendDataToTagoio(
Expand Down

0 comments on commit a944c54

Please sign in to comment.