From 905950e5f8f591f7378f56af60082d6f3bdf29e4 Mon Sep 17 00:00:00 2001 From: Faisal Amir Date: Wed, 29 Jan 2025 22:07:55 +0700 Subject: [PATCH] chore: update type OperationSystemInfo --- core/src/types/miscellaneous/systemResourceInfo.ts | 3 --- web/services/appService.ts | 4 +--- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/core/src/types/miscellaneous/systemResourceInfo.ts b/core/src/types/miscellaneous/systemResourceInfo.ts index 82db5d9411..c92ca97a53 100644 --- a/core/src/types/miscellaneous/systemResourceInfo.ts +++ b/core/src/types/miscellaneous/systemResourceInfo.ts @@ -42,9 +42,6 @@ export type SupportedPlatform = SupportedPlatformTuple[number] export type OperatingSystemInfo = { platform: SupportedPlatform | 'unknown' arch: string - release: string - machine: string - version: string totalMem: number freeMem: number } diff --git a/web/services/appService.ts b/web/services/appService.ts index b8bcd41694..8e3cc97a21 100644 --- a/web/services/appService.ts +++ b/web/services/appService.ts @@ -1,6 +1,7 @@ import { ExtensionTypeEnum, HardwareManagementExtension, + OperatingSystemInfo, SupportedPlatform, // MonitoringExtension, SystemInformation, @@ -36,10 +37,7 @@ export const appService = { const updateOsInfo = { // ...osInfo, - machine: hardwareInfo.cpu.model, platform: 'darwin' as SupportedPlatform, - release: hardwareInfo.os.version.match(/\d+\.\d+\.\d+/)?.[0] || '', - version: hardwareInfo.os.version, arch: hardwareInfo.cpu.arch, freeMem: hardwareInfo.ram.available, totalMem: hardwareInfo.ram.total,