id is always NULL for perfstat_memory_total

This commit is contained in:
Doug MacEachern 2007-07-15 17:04:41 +00:00
parent 31864e053c
commit 139529c1e5
1 changed files with 2 additions and 3 deletions

View File

@ -44,10 +44,9 @@ int sigar_perfstat_pagingspace(perfstat_id_t *id,
return perfstat_pagingspace(id, pagingspace, sizeof(*pagingspace), num);
}
int sigar_perfstat_memory(perfstat_id_t *id,
perfstat_memory_total_t *memory)
int sigar_perfstat_memory(perfstat_memory_total_t *memory)
{
return perfstat_memory_total(id, memory, sizeof(*memory), 1);
return perfstat_memory_total(NULL, memory, sizeof(*memory), 1);
}
int sigar_perfstat_disk(perfstat_id_t *id,