calculate sizeof within perfstat proxy

This commit is contained in:
Doug MacEachern 2007-07-15 16:36:06 +00:00
parent 148c562ff6
commit 31864e053c
1 changed files with 1 additions and 2 deletions

View File

@ -59,10 +59,9 @@ int sigar_perfstat_disk(perfstat_id_t *id,
int sigar_perfstat_diskadapter(perfstat_id_t *id,
perfstat_diskadapter_t *adapter,
size_t size,
int num)
{
return perfstat_diskadapter(id, adapter, size, num);
return perfstat_diskadapter(id, adapter, sizeof(*adapter), num);
}
int sigar_perfstat_diskpath(perfstat_id_t *id,