warning clean

Signed-off-by: dongsenhao <dongsenhao2@huawei.com>
This commit is contained in:
dongsenhao 2023-07-06 19:08:32 +08:00
parent 34652699cb
commit 62388d88af

View File

@ -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;
}