Browse code

kex: use unsigned long for rpc stats.fetchn values

Daniel-Constantin Mierla authored on 14/01/2022 15:50:07
Showing 1 changed files
... ...
@@ -496,7 +496,7 @@ static void rpc_fetch_add_stat(rpc_t* rpc, void* ctx, void* hst, char* g, char*
496 496
 
497 497
 	snprintf(nbuf, 127, "%s.%s", g, n);
498 498
 	if (numeric) {
499
-		res = rpc->struct_add(hst, "d", nbuf, val);
499
+		res = rpc->struct_add(hst, "j", nbuf, val);
500 500
 	} else {
501 501
 		res = rpc->struct_printf(hst, nbuf, "%lu", val);
502 502
 	}