Skip to content

Commit 1d29863

Browse files
authored
getrusage ru_maxrss is in Bytes not Kilobytes (#2539)
1 parent 3229cc2 commit 1d29863

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/core/CProcessStats_MacOSX.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ std::size_t CProcessStats::maxResidentSetSize() {
3232
return 0;
3333
}
3434

35-
// ru_maxrss is in kilobytes
36-
return static_cast<std::size_t>(rusage.ru_maxrss * 1024L);
35+
// ru_maxrss is in bytes
36+
return static_cast<std::size_t>(rusage.ru_maxrss);
3737
}
3838
}
3939
}

0 commit comments

Comments
 (0)