Procházet zdrojové kódy

Bugfix: Read state from sysfs.

master
Lukas Prause před 3 roky
rodič
revize
6faf81078e
1 změnil soubory, kde provedl 7 přidání a 3 odebrání
  1. +7
    -3
      measurement_main.py

+ 7
- 3
measurement_main.py Zobrazit soubor

@@ -167,8 +167,10 @@ def activate_hystart():

def is_hystart_activated():
return (
subprocess.check_output(
"cat /sys/module/tcp_cubic/parameters/hystart", shell=True
int(
subprocess.check_output(
"cat /sys/module/tcp_cubic/parameters/hystart", shell=True
)
)
== "1"
)
@@ -176,10 +178,12 @@ def is_hystart_activated():

def is_tcp_probe_enabled():
return (
int(
subprocess.check_output(
"cat /sys/kernel/debug/tracing/events/tcp/tcp_probe/enable", shell=True
)
== "1"
)
== "1"
)



Načítá se…
Zrušit
Uložit