Skip to content

Commit

Permalink
refactor: clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
metacosm committed Feb 1, 2024
1 parent c34458a commit c3ff23b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ private static boolean isReadable(Path file) {
}

@Override
public void start(long frequency) throws Exception {
public void start(long frequency) {
this.frequency = frequency;

// perform an initial measure to prime the data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import net.laprun.sustainability.power.sensors.PowerSensor;
import net.laprun.sustainability.power.sensors.RegisteredPID;

@SuppressWarnings("unused")
public class TestPowerSensor implements PowerSensor {
public static final String CPU = "cpu";
public static final SensorMetadata DEFAULT = new SensorMetadata(
Expand Down Expand Up @@ -37,7 +38,7 @@ public boolean isStarted() {
}

@Override
public void start(long samplingFrequencyInMillis) throws Exception {
public void start(long samplingFrequencyInMillis) {
if (!started) {
started = true;
}
Expand Down

0 comments on commit c3ff23b

Please sign in to comment.