mirror of
https://gitee.com/openharmony/commonlibrary_memory_utils
synced 2024-11-27 09:21:58 +00:00
warning clean
Signed-off-by: dongsenhao <dongsenhao2@huawei.com>
This commit is contained in:
parent
34652699cb
commit
62388d88af
@ -64,7 +64,7 @@ uint64_t GetRssByPid(const int pid)
|
||||
std::istringstream isStatm(statm);
|
||||
isStatm >> vss >> rss; // pages
|
||||
|
||||
size = static_cast<int>(atoi(rss.c_str())) * PAGE_TO_KB;
|
||||
size = static_cast<uint64_t>(atoi(rss.c_str()) * PAGE_TO_KB);
|
||||
return size;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user