aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiuseppe Di Natale <[email protected]>2016-10-05 08:41:26 -0700
committerGiuseppe Di Natale <[email protected]>2016-10-06 10:52:21 -0700
commite169749fc0b87904cb48e8cca0c87501eb46ebac (patch)
tree637d1a1d7fad4245e38928dc7d282ee35de9e9d1
parent9285493adfab4c3f33ffbdb63f16c8c65bdeb8f1 (diff)
Correct exit code for dbufstat -v and arcstat -v
Both scripts were returning an error code of 1 when using the -v argument. -v should exit with an error code of 0. Signed-off-by: Giuseppe Di Natale <[email protected]>
-rwxr-xr-xcmd/arcstat/arcstat.py2
-rwxr-xr-xcmd/dbufstat/dbufstat.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/cmd/arcstat/arcstat.py b/cmd/arcstat/arcstat.py
index 416120795..b743fd8bc 100755
--- a/cmd/arcstat/arcstat.py
+++ b/cmd/arcstat/arcstat.py
@@ -122,7 +122,7 @@ def detailed_usage():
sys.stderr.write("%11s : %s\n" % (key, cols[key][2]))
sys.stderr.write("\n")
- sys.exit(1)
+ sys.exit(0)
def usage():
diff --git a/cmd/dbufstat/dbufstat.py b/cmd/dbufstat/dbufstat.py
index 0bda1524e..ceb0160cd 100755
--- a/cmd/dbufstat/dbufstat.py
+++ b/cmd/dbufstat/dbufstat.py
@@ -143,7 +143,7 @@ def detailed_usage():
sys.stderr.write("%11s : %s\n" % (key, cols[key][2]))
sys.stderr.write("\n")
- sys.exit(1)
+ sys.exit(0)
def usage():