summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authornasr <nsrddyn@gmail.com>2025-12-01 21:40:16 +0100
committernasr <nsrddyn@gmail.com>2025-12-01 21:40:16 +0100
commit6837f651532eff9b9b978dc31d295c8edfdf8f72 (patch)
tree821abb4716625d2ce0a334b2ba834dce43c76375 /src/main
parentf09c7649a57e5df4368819e0888cccb9035d3bb3 (diff)
refactor & debug
Diffstat (limited to 'src/main')
-rw-r--r--src/main/scala/main/infrastructure/Resources.scala12
-rw-r--r--src/main/scala/main/infrastructure/Routes.scala1
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 (