]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
replaced bit-shift with respective define
authorRobert Dietrich <robert.dietrich@tu-dresden.de>
Thu, 22 Aug 2019 12:41:47 +0000 (14:41 +0200)
committerRobert Dietrich <robert.dietrich@tu-dresden.de>
Thu, 22 Aug 2019 12:41:47 +0000 (14:41 +0200)
src/gpu_nvidia.c

index 773323ea2f0bd3271fe9e0e0bedafbd140193c74..d072c43fe57d7830aace5d2415bccb4574f3a840 100644 (file)
@@ -173,7 +173,7 @@ static int nvml_read(void) {
     TRY(nvmlDeviceGetHandleByIndex(ix, &dev));
 
     char dev_name[NVML_DEVICE_NAME_BUFFER_SIZE] = {0};
-    if( instance_by & (1 << 1) ) {
+    if( instance_by & INSTANCE_BY_GPUNAME ) {
       TRY(nvmlDeviceGetName(dev, dev_name, sizeof(dev_name) - 1));
     }