diff --git a/ChangeLog b/ChangeLog index 0b472f9..52f711f 100755 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ 2017-12-17 - Add ipfix sampling. Process option template/record with sampling elements 34 and 35 +- Report updates on existing samplers in v9 only if values change. issue 84 2017-12-10 - Add lz4 compression diff --git a/bin/netflow_v9.c b/bin/netflow_v9.c index 788e174..ef5db8f 100644 --- a/bin/netflow_v9.c +++ b/bin/netflow_v9.c @@ -3013,8 +3013,6 @@ generic_sampler_t *sampler; // test for update of existing sampler if ( sampler->info.id == id ) { // found same sampler id - update record - LogInfo( "Update existing sampler id: %i, mode: %u, interval: %u\n", - id, mode, interval); dbg_printf("Update existing sampler id: %i, mode: %u, interval: %u\n", id, mode, interval); @@ -3023,6 +3021,8 @@ generic_sampler_t *sampler; FlushInfoSampler(fs, &(sampler->info)); sampler->info.mode = mode; sampler->info.interval = interval; + LogInfo( "Update existing sampler id: %i, mode: %u, interval: %u\n", + id, mode, interval); } else { dbg_printf("Sampler unchanged!\n"); }