Skip to content

Commit

Permalink
kex: added process description for rpc command pkg.stats
Browse files Browse the repository at this point in the history
  • Loading branch information
goharahmed committed Apr 2, 2020
1 parent e2f50d8 commit 80dfbef
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/modules/kex/pkg_stats.c
Expand Up @@ -240,15 +240,16 @@ static void rpc_pkg_stats(rpc_t* rpc, void* ctx)
_pkg_proc_stats_list[i].total_size = _pkg_proc_stats_list[0].total_size;
_pkg_proc_stats_list[i].rank = PROC_NOCHLDINIT;
}
if(rpc->struct_add(th, "dddddddd",
if(rpc->struct_add(th, "dddddddds",
"entry", i,
"pid", _pkg_proc_stats_list[i].pid,
"rank", _pkg_proc_stats_list[i].rank,
"used", _pkg_proc_stats_list[i].used,
"free", _pkg_proc_stats_list[i].available,
"real_used", _pkg_proc_stats_list[i].real_used,
"total_size", _pkg_proc_stats_list[i].total_size,
"total_frags", _pkg_proc_stats_list[i].total_frags
"total_frags", _pkg_proc_stats_list[i].total_frags,
"desc",pt[i].desc
)<0)
{
rpc->fault(ctx, 500, "Internal error creating rpc");
Expand Down

0 comments on commit 80dfbef

Please sign in to comment.