Skip to content

Commit

Permalink
core: use unsigned long (j) for rpc core.shmmem
Browse files Browse the repository at this point in the history
- GH #3450
  • Loading branch information
miconda committed May 16, 2023
1 parent 1d5722e commit 94dd64a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/core/core_cmd.c
Expand Up @@ -609,13 +609,13 @@ static void core_shmmem(rpc_t* rpc, void* c)
}
shm_info(&mi);
rpc->add(c, "{", &handle);
rpc->struct_add(handle, "dddddd",
"total", (unsigned int)(mi.total_size>>rs),
"free", (unsigned int)(mi.free_size>>rs),
"used", (unsigned int)(mi.used_size>>rs),
"real_used",(unsigned int)(mi.real_used>>rs),
"max_used", (unsigned int)(mi.max_used>>rs),
"fragments", (unsigned int)mi.total_frags
rpc->struct_add(handle, "jjjjjj",
"total", (mi.total_size>>rs),
"free", (mi.free_size>>rs),
"used", (mi.used_size>>rs),
"real_used", (mi.real_used>>rs),
"max_used", (mi.max_used>>rs),
"fragments", mi.total_frags
);
}

Expand Down

0 comments on commit 94dd64a

Please sign in to comment.