Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
telegraf-nftables
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Due to inactivity, this project is scheduled to be deleted on 2035-04-24.
Why is this scheduled?
Show more breadcrumbs
vqgroup
telegraf-nftables
Commits
7513fcac
Unverified
Commit
7513fcac
authored
8 years ago
by
vvvkamper
Committed by
Cameron Sparr
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix part 2 of #1291
added PDH_FMT_NOCAP100 format option closes #2483
parent
9df2974a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+1
-0
1 addition, 0 deletions
CHANGELOG.md
plugins/inputs/win_perf_counters/pdh.go
+2
-2
2 additions, 2 deletions
plugins/inputs/win_perf_counters/pdh.go
with
3 additions
and
2 deletions
CHANGELOG.md
+
1
−
0
View file @
7513fcac
...
...
@@ -74,6 +74,7 @@ be deprecated eventually.
-
[
#2178
](
https://github.com/influxdata/telegraf/issues/2178
)
: logparser: regexp with lookahead.
-
[
#2466
](
https://github.com/influxdata/telegraf/issues/2466
)
: Telegraf can crash in LoadDirectory on 0600 files.
-
[
#2215
](
https://github.com/influxdata/telegraf/issues/2215
)
: Iptables input: document better that rules without a comment are ignored.
-
[
#2483
](
https://github.com/influxdata/telegraf/pull/2483
)
: Fix win_perf_counters capping values at 100.
## v1.2.1 [2017-02-01]
...
...
This diff is collapsed.
Click to expand it.
plugins/inputs/win_perf_counters/pdh.go
+
2
−
2
View file @
7513fcac
...
...
@@ -331,7 +331,7 @@ func PdhCollectQueryData(hQuery PDH_HQUERY) uint32 {
func
PdhGetFormattedCounterValueDouble
(
hCounter
PDH_HCOUNTER
,
lpdwType
*
uint32
,
pValue
*
PDH_FMT_COUNTERVALUE_DOUBLE
)
uint32
{
ret
,
_
,
_
:=
pdh_GetFormattedCounterValue
.
Call
(
uintptr
(
hCounter
),
uintptr
(
PDH_FMT_DOUBLE
),
uintptr
(
PDH_FMT_DOUBLE
|
PDH_FMT_NOCAP100
),
uintptr
(
unsafe
.
Pointer
(
lpdwType
)),
uintptr
(
unsafe
.
Pointer
(
pValue
)))
...
...
@@ -378,7 +378,7 @@ func PdhGetFormattedCounterValueDouble(hCounter PDH_HCOUNTER, lpdwType *uint32,
func
PdhGetFormattedCounterArrayDouble
(
hCounter
PDH_HCOUNTER
,
lpdwBufferSize
*
uint32
,
lpdwBufferCount
*
uint32
,
itemBuffer
*
PDH_FMT_COUNTERVALUE_ITEM_DOUBLE
)
uint32
{
ret
,
_
,
_
:=
pdh_GetFormattedCounterArrayW
.
Call
(
uintptr
(
hCounter
),
uintptr
(
PDH_FMT_DOUBLE
),
uintptr
(
PDH_FMT_DOUBLE
|
PDH_FMT_NOCAP100
),
uintptr
(
unsafe
.
Pointer
(
lpdwBufferSize
)),
uintptr
(
unsafe
.
Pointer
(
lpdwBufferCount
)),
uintptr
(
unsafe
.
Pointer
(
itemBuffer
)))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment