1
0
mirror of https://github.com/chylex/Minecraft-Phantom-Panel.git synced 2024-10-17 12:42:51 +02: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;
}