Exemplo n.º 1
0
 private int GetSourceLoad()
 {
     return(Rams.Select(x => x.LoadUsage).Sum() +
            Hards.Select(x => x.LoadUsage).Sum() +
            Cpus.Select(x => x.LoadUsage).Sum() +
            Gpus.Select(x => x.LoadUsage).Sum() +
            Networks.Select(x => x.LoadUsage).Sum() +
            Wirelesses.Select(x => x.LoadUsage).Sum() +
            Motherboard.LoadUsage);
 }