mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-10 07:00:08 +01:00
GPU: clean up GPU index detection code
This commit is contained in:
@@ -111,9 +111,9 @@ const char* ffDetectNvidiaGpuInfo(const FFGpuDriverCondition* cond, FFGpuDriverR
|
||||
{
|
||||
unsigned int value;
|
||||
if (nvmlData.ffnvmlDeviceGetIndex(device, &value) == NVML_SUCCESS)
|
||||
*result.index = (uint8_t)value;
|
||||
*result.index = value;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (result.temp)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user