diff --git a/tools/runtime/sflow/sflow-to-rrd-handler b/tools/runtime/sflow/sflow-to-rrd-handler index 796caaa28..569a69e35 100755 --- a/tools/runtime/sflow/sflow-to-rrd-handler +++ b/tools/runtime/sflow/sflow-to-rrd-handler @@ -210,7 +210,6 @@ while () { my $newmactable = reload_mactable($client, $macdbrest); if ($newmactable) { $mactable = $newmactable; - $matrix = matrix_init($mactable, $infraid); $mactablereloadfails = 0; } else { $mactablereloadfails++; @@ -221,6 +220,7 @@ while () { die "FATAL: could not reload mactable after $mactabletimeout seconds. Aborting.\n"; } } + $matrix = matrix_init($mactable, $infraid); $debug && print STDERR "DEBUG: flush completed at ".time()."\n"; } }