diff options
| author | Paul Buetow <paul@buetow.org> | 2012-06-23 17:46:15 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2012-06-23 17:46:15 +0200 |
| commit | 59099ea8ad16763eb272d9656d12e6d846373114 (patch) | |
| tree | 31767ade6dff370f41f8afddfedbb1fb5a9c5945 | |
| parent | f60cf3cbad59ac173f37d6a7d14132171590f25a (diff) | |
remove ssh reconect sample limit
| -rw-r--r-- | lib/Loadbars/HelpDispatch.pm | 23 | ||||
| -rw-r--r-- | lib/Loadbars/Main.pm | 2 | ||||
| -rw-r--r-- | lib/Loadbars/Shared.pm | 1 |
3 files changed, 9 insertions, 17 deletions
diff --git a/lib/Loadbars/HelpDispatch.pm b/lib/Loadbars/HelpDispatch.pm index 40adee6..426adf3 100644 --- a/lib/Loadbars/HelpDispatch.pm +++ b/lib/Loadbars/HelpDispatch.pm @@ -1,17 +1,17 @@ package Loadbars::HelpDispatch; use strict; -use warnings; + use warnings; -use Loadbars::Constants; -use Loadbars::Shared; + use Loadbars::Constants; + use Loadbars::Shared; -sub create () { - my $hosts = ''; + sub create () { + my $hosts = ''; - my $textdesc = <<END; -CPU stuff: - st = Steal in % [see man proc] (extended) + my $textdesc = <<END; + CPU stuff: + st = Steal in % [see man proc] (extended) Color: Red gt = Guest in % [see man proc] (extended) Color: Red @@ -199,13 +199,6 @@ END mode => 1 }, - samples => { - menupos => 17, - help => 'Set number of samples until ssh reconnects', - mode => 6, - type => 'i' - }, - showcores => { menupos => 17, help => 'Toggle core display (0 or 1)', diff --git a/lib/Loadbars/Main.pm b/lib/Loadbars/Main.pm index ce3f90c..126f6f8 100644 --- a/lib/Loadbars/Main.pm +++ b/lib/Loadbars/Main.pm @@ -141,7 +141,7 @@ sub stats_thread ($;$) { close FH; } - for (1..$C{samples}) { + for (1..10000) { load(); printf qq(M MEMSTATS\n); diff --git a/lib/Loadbars/Shared.pm b/lib/Loadbars/Shared.pm index 17b2a69..ad138a6 100644 --- a/lib/Loadbars/Shared.pm +++ b/lib/Loadbars/Shared.pm @@ -42,7 +42,6 @@ our %I : shared; hasagent => 0, height => 230, maxwidth => 1280, - samples => 5000, showcores => 0, showmem => 0, showtext => 1, |
