Skip to content

Commit

Permalink
getrusage ru_maxrss is in Bytes not Kilobytes (#2539)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkyle authored Jun 20, 2023
1 parent 3229cc2 commit 1d29863
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/core/CProcessStats_MacOSX.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ std::size_t CProcessStats::maxResidentSetSize() {
return 0;
}

// ru_maxrss is in kilobytes
return static_cast<std::size_t>(rusage.ru_maxrss * 1024L);
// ru_maxrss is in bytes
return static_cast<std::size_t>(rusage.ru_maxrss);
}
}
}

0 comments on commit 1d29863

Please sign in to comment.