Skip to content

Commit

Permalink
kex: use unsigned long for rpc stats.fetchn values
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Jan 14, 2022
1 parent 6794a12 commit 3da3a78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/kex/core_stats.c
Expand Up @@ -496,7 +496,7 @@ static void rpc_fetch_add_stat(rpc_t* rpc, void* ctx, void* hst, char* g, char*

snprintf(nbuf, 127, "%s.%s", g, n);
if (numeric) {
res = rpc->struct_add(hst, "d", nbuf, val);
res = rpc->struct_add(hst, "j", nbuf, val);
} else {
res = rpc->struct_printf(hst, nbuf, "%lu", val);
}
Expand Down

0 comments on commit 3da3a78

Please sign in to comment.