diff options
Diffstat (limited to 'tools/ProcStats.cpp')
-rw-r--r-- | tools/ProcStats.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/ProcStats.cpp b/tools/ProcStats.cpp index fc9da23011..a772db4226 100644 --- a/tools/ProcStats.cpp +++ b/tools/ProcStats.cpp @@ -46,10 +46,10 @@ #include <stdio.h> int sk_tools::getCurrResidentSetSizeMB() { const long pageSize = sysconf(_SC_PAGESIZE); - long rssPages = 0; + long long rssPages = 0; if (FILE* statm = fopen("/proc/self/statm", "r")) { // statm contains: program-size rss shared text lib data dirty, all in page counts. - int rc = fscanf(statm, "%*d %ld", &rssPages); + int rc = fscanf(statm, "%*d %lld", &rssPages); fclose(statm); if (rc != 1) { return -1; |