mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-29 16:26:39 +01:00
16 lines
319 B
C
16 lines
319 B
C
#include "memory.h"
|
|
|
|
#include <OS.h>
|
|
|
|
const char* ffDetectMemory(FFMemoryResult* ram)
|
|
{
|
|
system_info info;
|
|
if (get_system_info(&info) != B_OK)
|
|
return "Error getting system info";
|
|
|
|
ram->bytesTotal = B_PAGE_SIZE * info.max_pages;
|
|
ram->bytesUsed = B_PAGE_SIZE * info.used_pages;
|
|
|
|
return NULL;
|
|
}
|