fix typo
This commit is contained in:
parent
fbd430c0e9
commit
5b58e0655e
@ -136,7 +136,7 @@ optional arguments:
|
||||
path to the config file, default values:
|
||||
./nohang.conf, /etc/nohang/nohang.conf
|
||||
-cc CONFIG, --check-config CONFIG
|
||||
ckeck and print config
|
||||
check and print config
|
||||
```
|
||||
|
||||
## How to configure nohang
|
||||
|
6
nohang
6
nohang
@ -979,7 +979,7 @@ def zram_stat(zram_id):
|
||||
Get zram state.
|
||||
|
||||
zram_id: str zram block-device id
|
||||
returns bytes diskcize, str mem_used_total
|
||||
returns bytes disksize, str mem_used_total
|
||||
"""
|
||||
try:
|
||||
disksize = rline1('/sys/block/' + zram_id + '/disksize')
|
||||
@ -1079,7 +1079,7 @@ def get_pid_list():
|
||||
"""
|
||||
pid_list = []
|
||||
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)
|
||||
return pid_list
|
||||
|
||||
@ -2268,7 +2268,7 @@ optional arguments:
|
||||
path to the config file, default values:
|
||||
./nohang.conf, /etc/nohang/nohang.conf
|
||||
-cc CONFIG, --check-config CONFIG
|
||||
ckeck and print config"""
|
||||
check and print config"""
|
||||
|
||||
|
||||
SC_CLK_TCK = os.sysconf(os.sysconf_names['SC_CLK_TCK'])
|
||||
|
Loading…
Reference in New Issue
Block a user