Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions plugins/lua/ts_lua.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ static char const *const ts_lua_g_stat_strs[] = {
typedef struct {
ts_lua_main_ctx *main_ctx_array;

int gc_kb; // last collected gc in kb
int threads; // last collected number active threads
TSMgmtInt gc_kb; // last collected gc in kb
TSMgmtInt threads; // last collected number active threads

int stat_inds[TS_LUA_IND_SIZE]; // stats indices

Expand Down Expand Up @@ -184,8 +184,8 @@ collectStats(ts_lua_plugin_stats *const plugin_stats)
ts_lua_ctx_stats *const stats = main_ctx->stats;

TSMutexLock(stats->mutexp);
gc_kb_total += (TSMgmtInt)stats->gc_kb;
threads_total += (TSMgmtInt)stats->threads;
gc_kb_total += stats->gc_kb;
threads_total += stats->threads;
TSMutexUnlock(stats->mutexp);
}
}
Expand Down