We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84fa70a commit afaaf80Copy full SHA for afaaf80
process/nettisa.cpp
@@ -95,10 +95,8 @@ void NETTISAPlugin::pre_export(Flow& rec)
95
= (RecordExtNETTISA*) rec.get_extension(RecordExtNETTISA::REGISTERED_ID);
96
uint32_t n = rec.src_packets + rec.dst_packets;
97
if (n == 1) {
98
- nettisa_data->switching_ratio = 0;
99
- nettisa_data->stdev = 0;
100
- nettisa_data->kurtosis = 0;
101
- nettisa_data->time_distribution = 0;
+ rec.remove_extension(RecordExtNETTISA::REGISTERED_ID);
+ return;
102
} else {
103
nettisa_data->switching_ratio = nettisa_data->switching_ratio / n;
104
nettisa_data->stdev = pow(
0 commit comments