summaryrefslogtreecommitdiffstats
path: root/src/detection/memory/memory_sunos.c
blob: 7dfdeab959600c4109a83f13e26a6c93b764d623 (plain) (blame)
1
2
3
4
5
6
7
8
9
#include "memory.h"
#include <unistd.h>

const char* ffDetectMemory(FFMemoryResult* ram) {
    ram->bytesTotal = (uint64_t) sysconf(_SC_PHYS_PAGES) * instance.state.platform.sysinfo.pageSize;
    ram->bytesUsed = ram->bytesTotal - (uint64_t) sysconf(_SC_AVPHYS_PAGES) * instance.state.platform.sysinfo.pageSize;

    return NULL;
}