示例#1
0
 public float GetGpuTemp(string gpuName)
 {
     try
     {
         var temp = InputChannel.GetGpuTemp(gpuName);
         return(temp);
     }
     catch (EndpointNotFoundException)
     {
         return(-1);
     }
     catch (CommunicationException)
     {
         return(-1);
     }
 }