1
0
mirror of https://github.com/chylex/Minecraft-Phantom-Panel.git synced 2024-10-30 05:42:47 +01:00
Minecraft-Phantom-Panel/Server/Phantom.Server.Services/Agents/AgentStats.cs

12 lines
254 B
C#

using Phantom.Common.Data;
namespace Phantom.Server.Services.Agents;
public sealed record AgentStats(
Agent Agent,
int UsedInstances,
RamAllocationUnits UsedMemory
) {
public RamAllocationUnits AvailableMemory => Agent.MaxMemory - UsedMemory;
}