summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpbuetow (lap824) <puppet@mx.buetow.org>2012-01-21 16:18:34 +0100
committerpbuetow (lap824) <puppet@mx.buetow.org>2012-01-21 16:18:34 +0100
commite181ce9e1128b2e18ed1d505d8b160f76118efe9 (patch)
treed91266d917cf338705dd95ba99b1db03f04ae518
parent8fddb3fa956a6d39688a22d88627fc3cf6e9ee39 (diff)
some reorderings
-rwxr-xr-xloadbars60
1 files changed, 30 insertions, 30 deletions
diff --git a/loadbars b/loadbars
index 637eeae..168cbc4 100755
--- a/loadbars
+++ b/loadbars
@@ -413,7 +413,19 @@ sub main_loop ($@) {
$app->fill($rect_separator, Loadbars::GREY);
}
- $y = $C{height} - $heights{system};
+ $y = $C{height} - $heights{softirq};
+ $rect_softirq->width($width);
+ $rect_softirq->height($heights{softirq});
+ $rect_softirq->x($x);
+ $rect_softirq->y($y);
+
+ $y -= $heights{irq};
+ $rect_irq->width($width);
+ $rect_irq->height($heights{irq});
+ $rect_irq->x($x);
+ $rect_irq->y($y);
+
+ $y -= $heights{system};
$rect_system->width($width);
$rect_system->height($heights{system});
$rect_system->x($x);
@@ -425,29 +437,23 @@ sub main_loop ($@) {
$rect_user->x($x);
$rect_user->y($y);
- $y -= $heights{nice};
- $rect_nice->width($width);
- $rect_nice->height($heights{nice});
- $rect_nice->x($x);
- $rect_nice->y($y);
-
$y -= $heights{iowait};
$rect_iowait->width($width);
$rect_iowait->height($heights{iowait});
$rect_iowait->x($x);
$rect_iowait->y($y);
- $y -= $heights{softirq};
- $rect_softirq->width($width);
- $rect_softirq->height($heights{softirq});
- $rect_softirq->x($x);
- $rect_softirq->y($y);
+ $y -= $heights{nice};
+ $rect_nice->width($width);
+ $rect_nice->height($heights{nice});
+ $rect_nice->x($x);
+ $rect_nice->y($y);
- $y -= $heights{irq};
- $rect_irq->width($width);
- $rect_irq->height($heights{irq});
- $rect_irq->x($x);
- $rect_irq->y($y);
+ $y -= $heights{idle};
+ $rect_idle->width($width);
+ $rect_idle->height($heights{idle});
+ $rect_idle->x($x);
+ $rect_idle->y($y);
$y -= $heights{steal};
$rect_steal->width($width);
@@ -455,12 +461,6 @@ sub main_loop ($@) {
$rect_steal->x($x);
$rect_steal->y($y);
- $y -= $heights{idle};
- $rect_idle->width($width);
- $rect_idle->height($heights{idle});
- $rect_idle->x($x);
- $rect_idle->y($y);
-
my $all = 100 - $cpuaverage->{idle};
my $max_all = 0;
@@ -468,8 +468,8 @@ sub main_loop ($@) {
$app->fill($rect_steal, Loadbars::RED);
$app->fill($rect_irq, Loadbars::WHITE);
$app->fill($rect_softirq, Loadbars::WHITE);
- $app->fill($rect_iowait, Loadbars::PURPLE);
$app->fill($rect_nice, Loadbars::GREEN);
+ $app->fill($rect_iowait, Loadbars::PURPLE);
if ($C{extended}) {
my %maxheights = map {
@@ -601,14 +601,10 @@ sub dispatch_table () {
my $textdesc = <<END;
Explanations:
- id = Idle cpu usage in % (extended)
- Color: Black
st = CPU stolen from VM in % (extended)
Color: Red
- ir = IRQ usage in % (extended)
- Color: White
- sr = Soft IRQ usage in % (extended)
- Color: White
+ id = Idle cpu usage in % (extended)
+ Color: Black
ni = Nice cpu usage in %
Color: Green
io = IOwait cpu sage in %
@@ -617,6 +613,10 @@ Explanations:
Color: Yellow, dark yellow if al>50%, orange if al>50%
sy = System cpu sage in %
Blue, purple if >30%
+ ir = IRQ usage in % (extended)
+ Color: White
+ sr = Soft IRQ usage in % (extended)
+ Color: White
to = Total CPU usage, which is (100% - id)
pk = Max al peak of last avg. samples (extended)
avg = System load average; desc. order: 1, 5 and 15 min. avg.