calculate sizeof within perfstat proxy
This commit is contained in:
parent
148c562ff6
commit
31864e053c
|
@ -59,10 +59,9 @@ int sigar_perfstat_disk(perfstat_id_t *id,
|
||||||
|
|
||||||
int sigar_perfstat_diskadapter(perfstat_id_t *id,
|
int sigar_perfstat_diskadapter(perfstat_id_t *id,
|
||||||
perfstat_diskadapter_t *adapter,
|
perfstat_diskadapter_t *adapter,
|
||||||
size_t size,
|
|
||||||
int num)
|
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,
|
int sigar_perfstat_diskpath(perfstat_id_t *id,
|
||||||
|
|
Loading…
Reference in New Issue