Files
fastfetch/src/detection/memory/memory_bsd.c
T

12 lines
272 B
C
Raw Normal View History

2022-09-19 22:23:31 +02:00
#include "memory.h"
2022-09-19 23:16:43 +02:00
#include "common/sysctl.h"
2022-09-19 22:23:31 +02:00
void ffDetectMemoryImpl(FFMemoryResult* memory)
{
2022-09-19 23:16:43 +02:00
memory->ram.bytesTotal = (uint64_t) ffSysctlGetInt64("hw.physmem", 0);
2022-09-19 22:23:31 +02:00
memory->ram.bytesUsed = 0;
2022-09-19 23:16:43 +02:00
2022-09-19 22:23:31 +02:00
memory->swap.bytesTotal = 0;
memory->swap.bytesUsed = 0;
}