fix key for disk metrics, but wtf it still worked fine

This commit is contained in:
Doug MacEachern 2005-02-18 20:18:40 +00:00
parent 311c1a2f1c
commit 3e3e117f18
1 changed files with 1 additions and 1 deletions

View File

@ -1483,7 +1483,7 @@ static int get_disk_metrics(sigar_t *sigar,
{
DWORD i, err;
PERF_OBJECT_TYPE *object =
get_perf_object(sigar, PERF_TITLE_CPU_KEY, &err);
get_perf_object(sigar, PERF_TITLE_DISK_KEY, &err);
PERF_INSTANCE_DEFINITION *inst;
PERF_COUNTER_DEFINITION *counter;
DWORD perf_offsets[PERF_IX_DISK_MAX];