private static void GetMenoryAvaliable(ref MachineMonitorInfo info) { lock (info) { info.MemoryAvailable = (MemoryMonitor.GetMemoryInfo().AvailPhys / (1024 * 1024 * 1024)); } }
private static void GetMenoryTotal(ref MachineMonitorInfo info) { lock (info) { info.PhysicalMemory = (MemoryMonitor.GetMemoryInfo().TotalPhys / (1024 * 1024 * 1024)); } }