[*] I've seen reports that apple is special. Only documentation on google relating to this is dated 1993 and something irrelevant with new theme, also dated 1993.

This commit is contained in:
Reece Wilson 2022-01-20 21:21:33 +00:00
parent 56e08ac3d9
commit 831649233e

View File

@ -58,7 +58,10 @@ namespace Aurora::HWInfo
struct rusage usage;
getrusage(RUSAGE_SELF, &usage);
auto used = AuUInt64(usage.ru_maxrss) * 1024;
auto used = AuUInt64(usage.ru_maxrss)
#if !defined(AURORA_IS_XNU_DERIVED)
* 1024;
#endif
return RamStat {used, max};
#else