fix disk_usage memcpy
This commit is contained in:
parent
ac8f9541cd
commit
7720fc973d
|
@ -1591,7 +1591,7 @@ int sigar_disk_usage_get(sigar_t *sigar, const char *name,
|
||||||
disk->service_time = tput ? util / tput : 0.0;
|
disk->service_time = tput ? util / tput : 0.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
memcpy(&iodev->disk, disk, sizeof(&iodev->disk));
|
memcpy(&iodev->disk, disk, sizeof(iodev->disk));
|
||||||
if (partition_usage) {
|
if (partition_usage) {
|
||||||
partition_usage->service_time = disk->service_time;
|
partition_usage->service_time = disk->service_time;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue