adryzz_Mekajiki/Mekajiki.Server/Server/ServerManager.cs
using CircularBuffer;
using NodaTime;

namespace Mekajiki.Server.Server;

public class ServerManager
{
    public const int BufferSize = 64;

    public Duration Uptime { get; private set; }
    public CircularBuffer<(ulong, ulong)> MemoryInfo { get; } = new(BufferSize);

    public CircularBuffer<int> Load { get; } = new(BufferSize);

    public void Update()
    {
        var data = systemInfo.sysinfo();
        Uptime = Duration.FromSeconds(data.uptime);
        MemoryInfo.PushFront((data.totalram, data.totalram - data.freeram));
        Load.PushFront(0);
    }
}