This commit is contained in:
Alexey Avramov 2019-07-20 10:40:25 +09:00
parent fbd430c0e9
commit 5b58e0655e
3 changed files with 5 additions and 5 deletions

View File

@ -136,7 +136,7 @@ optional arguments:
path to the config file, default values: path to the config file, default values:
./nohang.conf, /etc/nohang/nohang.conf ./nohang.conf, /etc/nohang/nohang.conf
-cc CONFIG, --check-config CONFIG -cc CONFIG, --check-config CONFIG
ckeck and print config check and print config
``` ```
## How to configure nohang ## How to configure nohang

6
nohang
View File

@ -979,7 +979,7 @@ def zram_stat(zram_id):
Get zram state. Get zram state.
zram_id: str zram block-device id zram_id: str zram block-device id
returns bytes diskcize, str mem_used_total returns bytes disksize, str mem_used_total
""" """
try: try:
disksize = rline1('/sys/block/' + zram_id + '/disksize') disksize = rline1('/sys/block/' + zram_id + '/disksize')
@ -1079,7 +1079,7 @@ def get_pid_list():
""" """
pid_list = [] pid_list = []
for pid in os.listdir('/proc'): for pid in os.listdir('/proc'):
if os.path.exists('/proc/' + pid + '/exe') is True: if os.path.exists('/proc/' + pid + '/exe'):
pid_list.append(pid) pid_list.append(pid)
return pid_list return pid_list
@ -2268,7 +2268,7 @@ optional arguments:
path to the config file, default values: path to the config file, default values:
./nohang.conf, /etc/nohang/nohang.conf ./nohang.conf, /etc/nohang/nohang.conf
-cc CONFIG, --check-config CONFIG -cc CONFIG, --check-config CONFIG
ckeck and print config""" check and print config"""
SC_CLK_TCK = os.sysconf(os.sysconf_names['SC_CLK_TCK']) SC_CLK_TCK = os.sysconf(os.sysconf_names['SC_CLK_TCK'])

View File

@ -46,7 +46,7 @@ Nohang is a highly configurable daemon for Linux which is able to correctly prev
./nohang.conf, /etc/nohang/nohang.conf ./nohang.conf, /etc/nohang/nohang.conf
-cc CONFIG, --check-config CONFIG -cc CONFIG, --check-config CONFIG
ckeck and print config check and print config
.SH HOW TO CONFIGURE .SH HOW TO CONFIGURE