Bugfix: Read state from sysfs.

This commit is contained in:
Lukas Prause
2022-02-16 10:14:26 +01:00
parent 68ce4adfc5
commit 6faf81078e

View File

@@ -167,18 +167,22 @@ def activate_hystart():
def is_hystart_activated(): def is_hystart_activated():
return ( return (
int(
subprocess.check_output( subprocess.check_output(
"cat /sys/module/tcp_cubic/parameters/hystart", shell=True "cat /sys/module/tcp_cubic/parameters/hystart", shell=True
) )
)
== "1" == "1"
) )
def is_tcp_probe_enabled(): def is_tcp_probe_enabled():
return ( return (
int(
subprocess.check_output( subprocess.check_output(
"cat /sys/kernel/debug/tracing/events/tcp/tcp_probe/enable", shell=True "cat /sys/kernel/debug/tracing/events/tcp/tcp_probe/enable", shell=True
) )
)
== "1" == "1"
) )