Skip to content

Commit dc20cdf

Browse files
author
Lukas Hutak
committed
IPFIX output: improve check whether to create a new file
1 parent c094dea commit dc20cdf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/plugins/output/ipfix/src/IPFIXOutput.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,11 @@
6666
bool
6767
IPFIXOutput::should_start_new_file(std::time_t current_time)
6868
{
69-
if (config->window_size == 0 && output_file != nullptr) {
69+
if (!output_file) {
70+
return true;
71+
}
72+
73+
if (config->window_size == 0) {
7074
return false;
7175
}
7276

0 commit comments

Comments
 (0)