Update toa.py

fix error cgroup
This commit is contained in:
beichen
2023-12-02 00:16:41 +08:00
committed by GitHub
parent 1fe20f7ec0
commit da3e001a6b

4
toa.py
View File

@@ -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)
detach_bpf(cgroup)