Commit 6aa5a340 authored by Mike Hibler's avatar Mike Hibler

Only print an eventhandler message if the node is one of ours.

parent 2346e27a
......@@ -658,10 +658,9 @@ sub osload ($$) {
return
if (!defined($eventnodes));
print "osload: eventhandler: $node_id, $event\n"
if ($debug);
if (exists($eventnodes->{$node_id})) {
print "osload: eventhandler: $node_id, $event\n"
if ($debug);
$eventnodes->{$node_id} = time();
}
};
......
......@@ -761,10 +761,9 @@ sub osload($$$) {
return
if (!defined($eventnodes));
print "$self: eventhandler: $node_id, $event\n"
if ($self->debug());
if (exists($eventnodes->{$node_id})) {
print "$self: eventhandler: $node_id, $event\n"
if ($self->debug());
$eventnodes->{$node_id} = time();
}
};
......
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