Skip to content

Commit 4938413

Browse files
committed
doc: add comment on infinite loop possibility
1 parent 90e8d8c commit 4938413

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

backend/src/main/java/net/laprun/sustainability/power/sensors/macos/powermetrics/MacOSPowermetricsSensor.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ Measures extractPowerMeasure(InputStream powerMeasureInput, Long tick) {
151151
pidsToProcess.remove(pid);
152152
break;
153153
}
154+
155+
// todo? if pid is not found, this will loop forever and we should break if ALL_TASKS is reached without draining the pids to process
154156
}
155157
continue;
156158
}

0 commit comments

Comments
 (0)