File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2266,7 +2266,7 @@ static int NFFlowSequenceNo = 0;
2266
2266
static void sendNetFlowV5Datagram (SFSample * sample )
2267
2267
{
2268
2268
NFFlowPkt5 pkt ;
2269
- uint32_t now = sample -> pcapTimestamp ?: sample -> readTimestamp ;
2269
+ uint32_t now = time ( NULL ) ;
2270
2270
uint32_t bytes ;
2271
2271
/* ignore fragments */
2272
2272
if (sample -> s .ip_fragmentOffset > 0 ) return ;
@@ -2345,7 +2345,7 @@ static void sendNetFlowV9Datagram(SFSample *sample)
2345
2345
{
2346
2346
NFFlowPkt9 pkt ;
2347
2347
2348
- uint32_t now = sample -> pcapTimestamp ?: sample -> readTimestamp ;
2348
+ uint32_t now = time ( NULL ) ;
2349
2349
uint32_t bytes ;
2350
2350
uint16_t i = 0 ;
2351
2351
const size_t fieldCount = NFFLOW9_NUM_ELEMENTS ;
@@ -2440,7 +2440,7 @@ static void sendNetFlowV9V6Datagram(SFSample *sample)
2440
2440
{
2441
2441
NFFlowPkt9_v6 pkt ;
2442
2442
2443
- uint32_t now = sample -> pcapTimestamp ?: sample -> readTimestamp ;
2443
+ uint32_t now = time ( NULL ) ;
2444
2444
uint32_t bytes ;
2445
2445
uint16_t i = 0 ;
2446
2446
const size_t fieldCount = NFFLOW9_V6_NUM_ELEMENTS ;
You can’t perform that action at this time.
0 commit comments