bitwatts-core/src/main/scala/org/powerapi/bitwatts/module/virtio/VirtioSensor.scala
Consider using util.Try instead of a try-catch block
val powerReader: Option[BufferedReader] = try {
Fatal exception is being caught.
case ex: Throwable => log.warning("i/o exception: {}", s"${ex.getMessage}"); None
bitwatts-core/src/main/scala/org/powerapi/bitwatts/reporter/ThriftDisplay.scala
Avoid mutable fields
var interval = 0
bitwatts-core/src/main/scala/org/powerapi/bitwatts/reporter/VirtioDisplay.scala
Avoid mutable fields
private[this] var output: Option[Socket] = None
Consider using util.Try instead of a try-catch block
try {
Consider using util.Try instead of a try-catch block
try {
More
Previous Next