Skip to content
This repository has been archived by the owner on Jul 19, 2023. It is now read-only.

Commit

Permalink
Fix PERF_COUNTER_BASE value (#17)
Browse files Browse the repository at this point in the history
Fixes #16
  • Loading branch information
carlpett authored and leoluk committed May 12, 2019
1 parent c19aa61 commit 9222a16
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions perflib/perflib.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,9 +335,9 @@ func QueryPerformanceData(query string) ([]*PerfObject, error) {

CounterType: def.CounterType,

IsCounter: def.CounterType&0x400 > 0,
IsBaseValue: def.CounterType&0x20000000 > 0,
IsNanosecondCounter: def.CounterType&0x00100000 > 0,
IsCounter: def.CounterType&0x400 == 0x400,
IsBaseValue: def.CounterType&0x00030000 == 0x00030000,
IsNanosecondCounter: def.CounterType&0x00100000 == 0x00100000,
}
}

Expand Down

0 comments on commit 9222a16

Please sign in to comment.