File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -1308,7 +1308,13 @@ int32_t sinsp::next(OUT sinsp_evt **puevt)
1308
1308
get_procs_cpu_from_driver (ts);
1309
1309
}
1310
1310
1311
- // this is used by things like the k8s and mesos clients
1311
+ //
1312
+ // Store a couple of values that we'll need later inside the event.
1313
+ // These are potentially used both for parsing the event for internal
1314
+ // state management, and for managing the k8s and mesos clients.
1315
+ //
1316
+ m_nevts++;
1317
+ evt->m_evtnum = m_nevts;
1312
1318
m_lastevent_ts = ts;
1313
1319
1314
1320
if (m_automatic_threadtable_purging)
@@ -1456,10 +1462,6 @@ int32_t sinsp::next(OUT sinsp_evt **puevt)
1456
1462
m_parser->process_event (evt);
1457
1463
#endif
1458
1464
1459
- // set the event number
1460
- m_nevts++;
1461
- evt->m_evtnum = m_nevts;
1462
-
1463
1465
//
1464
1466
// If needed, dump the event to file
1465
1467
//
You can’t perform that action at this time.
0 commit comments