From 6837f651532eff9b9b978dc31d295c8edfdf8f72 Mon Sep 17 00:00:00 2001 From: nasr Date: Mon, 1 Dec 2025 21:40:16 +0100 Subject: refactor & debug --- src/main/scala/main/infrastructure/Resources.scala | 12 +----------- src/main/scala/main/infrastructure/Routes.scala | 1 + 2 files changed, 2 insertions(+), 11 deletions(-) (limited to 'src/main/scala') diff --git a/src/main/scala/main/infrastructure/Resources.scala b/src/main/scala/main/infrastructure/Resources.scala index fc3b08f..bf9dcf7 100644 --- a/src/main/scala/main/infrastructure/Resources.scala +++ b/src/main/scala/main/infrastructure/Resources.scala @@ -25,7 +25,7 @@ class Resources { /** * Pass the OS version to the DTO to later transfer it over the API **/ - PlatformInfo ( currentPlatform = sysInfo.getHardware.toString ) + PlatformInfo ( currentPlatform = sysInfo.getOperatingSystem.getFamily) } } @@ -56,16 +56,6 @@ class Resources { } - /** - * - * When CPU's can't handle theyre current clock they often drop - * clock speed - * This runs a check to see if it's stable in that aspect - * */ - // TODO: complete this together with the safety check - // def compareCpuFrequencyToMax: ZIO[Any, Throwable, Boolean] = if cpu.getMaxFreq() > cpu.getCurrentFreq() then false else true - // def compareCpuVolege: ZIO[Any, Throwable, Boolean] = if sensors.getCpuVoltage() - /** * Memory specific methods * */ diff --git a/src/main/scala/main/infrastructure/Routes.scala b/src/main/scala/main/infrastructure/Routes.scala index 74055ce..e2a63c5 100644 --- a/src/main/scala/main/infrastructure/Routes.scala +++ b/src/main/scala/main/infrastructure/Routes.scala @@ -7,6 +7,7 @@ import main.domain._ /** * * API routes to show the results of a stress test + * Routes => /cpu /ram /platform * * */ val routes = Routes ( -- cgit v1.2.3-70-g09d2