diff --git a/packages/server/Services/Hardware.ts b/packages/server/Services/Hardware.ts index c7fd994..2b78285 100644 --- a/packages/server/Services/Hardware.ts +++ b/packages/server/Services/Hardware.ts @@ -154,9 +154,15 @@ export async function getDiskUsages(): Promise { description: `${formatBytes(x.used)} / ${formatBytes(x.size)}`, detail: x.mount, title: `Disk ${i + 1}`, - total: x.size === null || x.size === undefined || Number.isNaN(x.size) ? 0 : x.size, + total: + x.size === null || x.size === undefined || Number.isNaN(x.size) + ? 0 + : x.size, type: "disk", - used: x.used === null || x.used === undefined || Number.isNaN(x.used) ? 0 : x.used, + used: + x.used === null || x.used === undefined || Number.isNaN(x.used) + ? 0 + : x.used, }; }); } diff --git a/plugins/tagoio-integration/src/back/RealtimeConnection.ts b/plugins/tagoio-integration/src/back/RealtimeConnection.ts index a293135..17c77b6 100644 --- a/plugins/tagoio-integration/src/back/RealtimeConnection.ts +++ b/plugins/tagoio-integration/src/back/RealtimeConnection.ts @@ -2,11 +2,10 @@ import os from "node:os"; import { URLSearchParams } from "node:url"; import { core, helpers, pluginStorage } from "@tago-io/tcore-sdk"; import EventSource from "eventsource"; +import removeNullValues from "../../../../packages/sdk/src/Types/Helpers/removeNullValues.ts"; import { cache } from "./Global.ts"; import { getMachineID } from "./Helpers.ts"; import { sendDataToTagoio } from "./Request.ts"; -import removeNullValues from "../../../../packages/sdk/src/Types/Helpers/removeNullValues.ts"; -import { IComputerUsage } from "@tago-io/tcore-sdk/types"; let events: EventSource | null = null; const pingInterval = 240000;