Browse code

kex: display proper values for pkg mem stats - large amounts of pkg memory were displayed as negative numbers

Ovidiu Sas authored on 17/02/2021 17:08:10
Showing 1 changed files
... ...
@@ -240,7 +240,7 @@ static void rpc_pkg_stats(rpc_t* rpc, void* ctx)
240 240
 				_pkg_proc_stats_list[i].total_size = _pkg_proc_stats_list[0].total_size;
241 241
 				_pkg_proc_stats_list[i].rank = PROC_NOCHLDINIT;
242 242
 			}
243
-			if(rpc->struct_add(th, "dddddddds",
243
+			if(rpc->struct_add(th, "duduuuuus",
244 244
 							"entry",     i,
245 245
 							"pid",       _pkg_proc_stats_list[i].pid,
246 246
 							"rank",      _pkg_proc_stats_list[i].rank,