Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ public class NuProcessWrapper implements ProcessWrapper {
private final PowermetricsProcessHandler metadataHandler;
private PowermetricsProcessHandler measureHandler;
private String periodInMilliSecondsAsString;
private long periodInMilliSeconds;

public NuProcessWrapper() {
metadataHandler = new PowermetricsProcessHandler("cpu_power", "-i", "10", "-n", "1");
Expand All @@ -35,8 +34,8 @@ public InputStream streamForMetadata() {
@Override
public void start(long periodInMilliSeconds) {
// todo? check if asked period is the same as the current used one
this.periodInMilliSeconds = periodInMilliSeconds > 100 ? periodInMilliSeconds - 50 : periodInMilliSeconds;
this.periodInMilliSecondsAsString = Long.toString(this.periodInMilliSeconds);
periodInMilliSeconds = periodInMilliSeconds > 100 ? periodInMilliSeconds - 50 : periodInMilliSeconds;
this.periodInMilliSecondsAsString = Long.toString(periodInMilliSeconds);
}

@Override
Expand Down
Loading