Skip to content

Commit

Permalink
fix: revert 18e4fd8
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Dellaluce <[email protected]>
  • Loading branch information
jasondellaluce authored and poiana committed Nov 7, 2022
1 parent 642aa14 commit 1e82083
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions userspace/libsinsp/sinsp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1308,7 +1308,13 @@ int32_t sinsp::next(OUT sinsp_evt **puevt)
get_procs_cpu_from_driver(ts);
}

// this is used by things like the k8s and mesos clients
//
// Store a couple of values that we'll need later inside the event.
// These are potentially used both for parsing the event for internal
// state management, and for managing the k8s and mesos clients.
//
m_nevts++;
evt->m_evtnum = m_nevts;
m_lastevent_ts = ts;

if (m_automatic_threadtable_purging)
Expand Down Expand Up @@ -1456,10 +1462,6 @@ int32_t sinsp::next(OUT sinsp_evt **puevt)
m_parser->process_event(evt);
#endif

// set the event number
m_nevts++;
evt->m_evtnum = m_nevts;

//
// If needed, dump the event to file
//
Expand Down

0 comments on commit 1e82083

Please sign in to comment.