From 5b58e0655ed16b38b2de8fc7d6859b0c6dc9de03 Mon Sep 17 00:00:00 2001 From: Alexey Avramov Date: Sat, 20 Jul 2019 10:40:25 +0900 Subject: [PATCH] fix typo --- README.md | 2 +- nohang | 6 +++--- nohang.1 | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 2d0859e..238ff07 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/nohang b/nohang index dee76ee..1213360 100755 --- a/nohang +++ b/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']) diff --git a/nohang.1 b/nohang.1 index 9274593..335f36a 100644 --- a/nohang.1 +++ b/nohang.1 @@ -46,7 +46,7 @@ Nohang is a highly configurable daemon for Linux which is able to correctly prev ./nohang.conf, /etc/nohang/nohang.conf -cc CONFIG, --check-config CONFIG - ckeck and print config + check and print config .SH HOW TO CONFIGURE