Beispiel #1
0
        private MachineData GetNextPerfCounters(string machineName)
        {
            var data = new MachineData();

            data.cpuPercent = _counterMap[machineName][0].NextValue();
            data.memoryMb   = _counterMap[machineName][1].NextValue();
            return(data);
        }
Beispiel #2
0
 private void PublishChange(string machineName, MachineData machData)
 {
     signalrClients.All.SendAsync("machine", machineName, machData);
     Console.WriteLine($"SignalR [machine] : " + machineName + ", " + machData.cpuPercent + ", " + machData.idleCpuTime);
 }