X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fdisk.c;h=e7372ab7a42dd8c0087450facb973d91e02665a8;hb=8c086dac4095529e02530b28fd92e50ad296acce;hp=8feaa8dff6fe77d8127c20c9afdaa9fd2530d14d;hpb=48b794525072b1ff00a90497ef0bb1f4030510f4;p=collectd.git diff --git a/src/disk.c b/src/disk.c index 8feaa8df..e7372ab7 100644 --- a/src/disk.c +++ b/src/disk.c @@ -403,7 +403,7 @@ static int disk_read (void) major = atoll (fields[0]); minor = atoll (fields[1]); - disk_name = fields[2]; + disk_name = fields[2 + fieldshift]; for (ds = disklist, pre_ds = disklist; ds != NULL; pre_ds = ds, ds = ds->next) if (strcmp (disk_name, ds->name) == 0)