Commit ce255fe6 authored by Rob Riepel's avatar Rob Riepel
Browse files

Move sleep interval counter initialization out of polling loop.

parent 0e8dc970
......@@ -14,6 +14,7 @@ my ($help, $signal);
my $sleep_interval = 120; # in seconds
my $reload_interval = 10; # reload poller config every N sleep intervals
my $do_reload_every = 0; # sleep interval counter
my $default_conf = "/etc/poller.config"; # default configuration file
my $poller_path = "/var/lib/poller/"; # poller results location
......@@ -37,7 +38,6 @@ init_signals();
while (1) {
my $poll_start = time;
my $do_reload_every = 0;
poll();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment