Skip to content

Commit 650744f

Browse files
beautify container monitor
1 parent d73c793 commit 650744f

File tree

2 files changed

+316
-120
lines changed

2 files changed

+316
-120
lines changed

BCC-Examples/container-monitor/data_collection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,9 @@ def _get_cgroup_name(self, path: str) -> str:
149149
return f"docker:{container_id}"
150150

151151
# For systemd services
152-
if "system. slice" in path:
152+
if "system.slice" in path:
153153
for part in parts:
154-
if part.endswith(". service"):
154+
if part.endswith(".service"):
155155
return part.replace(".service", "")
156156

157157
# For user slices

0 commit comments

Comments
 (0)