diff options
| author | Paul Buetow <paul@buetow.org> | 2011-01-11 13:06:29 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2011-01-11 13:06:29 +0000 |
| commit | a390ed7b7c0c46c5273b3578a080fbd541221e4e (patch) | |
| tree | 61e49e914cba6398f527ed1093f8cd53d7c5d98e /loadbars.pl | |
| parent | 0e745e06568812fa254e27891271460b83c2f948 (diff) | |
released v0.1.1
Diffstat (limited to 'loadbars.pl')
| -rwxr-xr-x | loadbars.pl | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/loadbars.pl b/loadbars.pl index 3e7e165..055009b 100755 --- a/loadbars.pl +++ b/loadbars.pl @@ -53,7 +53,7 @@ use threads::shared; use constant { DEPTH => 8, PROMPT => 'loadbars> ', - VERSION => 'loadbars v0.1.0', + VERSION => 'loadbars v0.1.1', COPYRIGHT => '2010-2011 (c) Paul Buetow <loadbars@mx.buetow.org>', NULL => 0, MSG_SET_DIMENSION => 1, @@ -73,7 +73,6 @@ use constant { USER_RED => 90, USER_ORANGE => 70, USER_YELLOW0 => 50, - RESERVERD_HEIGHT => 50, }; $| = 1; @@ -492,11 +491,20 @@ sub dispatch_table () { } keys %d; my $textdesc = <<END; -Explonation text display: - ni = Nice cpu usage - us = User cpu usage - sy = System cpu sage - su = System & user cpu usage +Explanation colors: + Blue: System cpu usage + Purple: System usage if system cpu is >30% + Yellow: User cpu usage + Darker yellow: User usage if system & user cpu is >50% + Orange: User usage if system & user cpu is >70% + White: Usage usage if system & user cpu is >99% + Green: Nice cpu usage + +Explanation text display: + ni = Nice cpu usage in % + us = User cpu usage in % + sy = System cpu sage in % + su = System & user cpu usage in % END my $closure = sub ($;$) { |
