fastfetch-sys 2.43.0

A neofetch like system information tool
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#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;
}