From 59099ea8ad16763eb272d9656d12e6d846373114 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 23 Jun 2012 17:46:15 +0200 Subject: remove ssh reconect sample limit --- lib/Loadbars/HelpDispatch.pm | 23 ++++++++--------------- lib/Loadbars/Main.pm | 2 +- 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 = < 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, -- cgit v1.2.3