Syntax correction

master
ColumbusTech 2017-11-27 22:23:44 +03:00
parent c20138ea5c
commit 4f8bc94cc7
1 changed files with 8 additions and 8 deletions

View File

@ -182,14 +182,14 @@ namespace Columbus
while (fgets(line, 512, fp) != NULL)
{
if (strncmp(line, "VmRSS:", 6) == 0)
{
fclose(fp);
std::string l = line;
l = l.substr(6, l.size() - 4);
return atoi(l.c_str()) / 1024;
}
}
if (strncmp(line, "VmRSS:", 6) == 0)
{
fclose(fp);
std::string l = line;
l = l.substr(6, l.size() - 4);
return atoi(l.c_str()) / 1024;
}
}
fclose(fp);