From da3e001a6b0d5d9893abacda3bcd4c8d53f768de Mon Sep 17 00:00:00 2001 From: beichen <43266206+BeichenDream@users.noreply.github.com> Date: Sat, 2 Dec 2023 00:16:41 +0800 Subject: [PATCH] Update toa.py fix error cgroup --- toa.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toa.py b/toa.py index 23bfa2f..a1811dc 100644 --- a/toa.py +++ b/toa.py @@ -28,7 +28,7 @@ class UserOption: def get_current_cgroup(): if os.path.exists('/sys/fs/cgroup/unified/'): - return '/sys/fs/cgroup/unified' + return '/sys/fs/cgroup/unified/' with open('/proc/self/cgroup', 'r') as file: lines = file.readlines() @@ -134,4 +134,4 @@ Usage: attach_bpf(new_bpf_content,cgroup) elif args.method == 'detach': - detach_bpf(cgroup) \ No newline at end of file + detach_bpf(cgroup)