Skip to content

Commit

Permalink
chore: update type OperationSystemInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
urmauur committed Jan 29, 2025
1 parent 04b91c8 commit 905950e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
3 changes: 0 additions & 3 deletions core/src/types/miscellaneous/systemResourceInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
4 changes: 1 addition & 3 deletions web/services/appService.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {
ExtensionTypeEnum,
HardwareManagementExtension,
OperatingSystemInfo,

Check warning on line 4 in web/services/appService.ts

View workflow job for this annotation

GitHub Actions / test-on-macos

'OperatingSystemInfo' is defined but never used

Check warning on line 4 in web/services/appService.ts

View workflow job for this annotation

GitHub Actions / test-on-ubuntu

'OperatingSystemInfo' is defined but never used

Check warning on line 4 in web/services/appService.ts

View workflow job for this annotation

GitHub Actions / test-on-windows-pr

'OperatingSystemInfo' is defined but never used

Check warning on line 4 in web/services/appService.ts

View workflow job for this annotation

GitHub Actions / coverage-check

'OperatingSystemInfo' is defined but never used
SupportedPlatform,
// MonitoringExtension,
SystemInformation,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 905950e

Please sign in to comment.