From: Robert Dietrich Date: Thu, 22 Aug 2019 12:41:47 +0000 (+0200) Subject: replaced bit-shift with respective define X-Git-Tag: collectd-5.11.0~5^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e23f707bfc5e5d88fe89efd61f2280ed49c17108;p=thirdparty%2Fcollectd.git replaced bit-shift with respective define --- diff --git a/src/gpu_nvidia.c b/src/gpu_nvidia.c index 773323ea2..d072c43fe 100644 --- a/src/gpu_nvidia.c +++ b/src/gpu_nvidia.c @@ -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)); }