public int GetTemperatureByIndex(int gpuIndex) { int adapterIndex = GpuIndexToAdapterIndex(_gpuNames, gpuIndex); ADLTemperature adlt = new ADLTemperature(); if (ADL.ADL_Overdrive5_Temperature_Get(adapterIndex, 0, ref adlt) == ADL.ADL_OK) { return((int)(0.001f * adlt.Temperature)); } else { return(0); } }