[修改]bug#134984,获取运行时资源信息-swap分区使用率demo显示swap分区使用率为0
This commit is contained in:
parent
f0122a61d4
commit
df42f45eab
|
@ -200,7 +200,7 @@ unsigned long kdk_rti_get_mem_swap_usage_KiB()
|
|||
|
||||
float kdk_rti_get_mem_swap_usage_percent()
|
||||
{
|
||||
unsigned long percent = 0;
|
||||
float percent = 0;
|
||||
#ifdef __linux__
|
||||
FILE *fp = fopen(MEMINFO_FILE, "rt");
|
||||
if (!fp)
|
||||
|
|
Loading…
Reference in New Issue