Bugfix: Read state from sysfs.
This commit is contained in:
@@ -167,18 +167,22 @@ def activate_hystart():
|
||||
|
||||
def is_hystart_activated():
|
||||
return (
|
||||
int(
|
||||
subprocess.check_output(
|
||||
"cat /sys/module/tcp_cubic/parameters/hystart", shell=True
|
||||
)
|
||||
)
|
||||
== "1"
|
||||
)
|
||||
|
||||
|
||||
def is_tcp_probe_enabled():
|
||||
return (
|
||||
int(
|
||||
subprocess.check_output(
|
||||
"cat /sys/kernel/debug/tracing/events/tcp/tcp_probe/enable", shell=True
|
||||
)
|
||||
)
|
||||
== "1"
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user