Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix mem_max_rss measurement on macOS (#173)
On BSD/darwin, ru_maxrss is defined in "bytes", unlike Linux where it is "kilobytes". Therefore, this code was wrongly multiplying the result by 1024. Rather than just fixing it here, it seems better to reuse the already correct `get_max_rss` function (used for calculating `command_max_rss`) elsewhere.
- Loading branch information