mirror of
https://github.com/varun-r-mallya/Python-BPF.git
synced 2026-02-12 16:10:59 +00:00
beautify container monitor
This commit is contained in:
@ -149,9 +149,9 @@ class ContainerDataCollector:
|
||||
return f"docker:{container_id}"
|
||||
|
||||
# For systemd services
|
||||
if "system. slice" in path:
|
||||
if "system.slice" in path:
|
||||
for part in parts:
|
||||
if part.endswith(". service"):
|
||||
if part.endswith(".service"):
|
||||
return part.replace(".service", "")
|
||||
|
||||
# For user slices
|
||||
|
||||
Reference in New Issue
Block a user