fix disk_usage memcpy

This commit is contained in:
Doug MacEachern 2007-11-07 05:32:25 +00:00
parent ac8f9541cd
commit 7720fc973d
1 changed files with 1 additions and 1 deletions

View File

@ -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;
} }