From a390ed7b7c0c46c5273b3578a080fbd541221e4e Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 11 Jan 2011 13:06:29 +0000 Subject: released v0.1.1 --- README | 25 +++++++++++++++++++++++++ WISHLIST | 2 ++ loadbars.pl | 22 +++++++++++++++------- 3 files changed, 42 insertions(+), 7 deletions(-) create mode 100644 README diff --git a/README b/README new file mode 100644 index 0000000..e010cb4 --- /dev/null +++ b/README @@ -0,0 +1,25 @@ +For general program informations see http://loadbars.buetow.org + +For legal informations see COPYING and COPYING.FONT + +For any program help check out --help or 'h' command + +For a list of features which might be added in the future see WHISHLIST + +For a changelog see CHANGELOG + +Explanation colors: + Blue: System cpu usage + Purple: System usage if it's >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 % + diff --git a/WISHLIST b/WISHLIST index 3ac48d9..a3d9f18 100644 --- a/WISHLIST +++ b/WISHLIST @@ -1 +1,3 @@ - Summarized CPU status, summarizing all involved servers +- Extended text display (hostname, cpu number, etc..) +- Stats for other stuff (e.g. memory, inodes..., disk usage) 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 ', 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 = <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 ($;$) { -- cgit v1.2.3