[修改]bug#134984,获取运行时资源信息-swap分区使用率demo显示swap分区使用率为0

This commit is contained in:
shaozhimin 2022-08-22 16:47:15 +08:00
parent f0122a61d4
commit df42f45eab
1 changed files with 1 additions and 1 deletions

View File

@ -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)