diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/main/scala/main/infrastructure/Resources.scala | 12 | ||||
| -rw-r--r-- | src/main/scala/main/infrastructure/Routes.scala | 1 |
2 files changed, 2 insertions, 11 deletions
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) } } @@ -57,16 +57,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 * */ def getRamInfo: Task[RamInfo] = { 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 ( |
