summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2012-02-10 07:46:51 +0100
committerPaul Buetow <paul@buetow.org>2012-02-10 07:46:51 +0100
commitb7c58f16d1e1bff13ce5700aed836506568ca67e (patch)
treecb49c7cd34c21f341d478ebae51ddd6b419b5d39
parentcafe0d509eeb356c5478e109f5344c6a27300907 (diff)
E_OK is now SUCCESS
-rwxr-xr-xloadbars8
1 files changed, 4 insertions, 4 deletions
diff --git a/loadbars b/loadbars
index 2abfdf3..035c1a4 100755
--- a/loadbars
+++ b/loadbars
@@ -50,7 +50,7 @@ use constant {
USER_YELLOW0 => 50,
INTERVAL => 0.1,
INTERVAL_WARN => 1.0,
- E_OK => 0,
+ SUCCESS => 0,
E_UNKNOWN => 1,
E_NOHOST => 2,
};
@@ -823,7 +823,7 @@ sub main_loop ($@) {
say "Good bye";
- exit E_OK;
+ exit SUCCESS;
}
sub dispatch_table () {
@@ -1208,7 +1208,7 @@ sub main () {
if ( defined $usage ) {
say $dispatch->('usage');
- exit E_OK;
+ exit SUCCESS;
}
set_showcores_regexp;
@@ -1231,7 +1231,7 @@ sub main () {
my @threads = create_threads @hosts;
main_loop $dispatch, @threads;
- exit E_OK;
+ exit SUCCESS;
}
main;