File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -1647,6 +1647,12 @@ void sinsp_chisel::do_timeout(sinsp_evt* evt)
16471647 }
16481648 }
16491649
1650+ //
1651+ // Make the event available to the API
1652+ //
1653+ lua_pushlightuserdata (m_ls, evt);
1654+ lua_setglobal (m_ls, " sievt" );
1655+
16501656 lua_getglobal (m_ls, " on_interval" );
16511657
16521658 lua_pushnumber (m_ls, (double )(ts / 1000000000 ));
@@ -1679,6 +1685,12 @@ void sinsp_chisel::do_timeout(sinsp_evt* evt)
16791685 {
16801686 uint64_t t;
16811687
1688+ //
1689+ // Make the event available to the API
1690+ //
1691+ lua_pushlightuserdata (m_ls, evt);
1692+ lua_setglobal (m_ls, " sievt" );
1693+
16821694 for (t = m_lua_last_interval_sample_time; t <= ts - interval; t += interval)
16831695 {
16841696 lua_getglobal (m_ls, " on_interval" );
You can’t perform that action at this time.
0 commit comments