Skip to content

Commit

Permalink
Replace all single percentage characters with double
Browse files Browse the repository at this point in the history
percentage characters in sampleConfig string so that fmt.Printf
will interpret them as literal percentage characters when
running 'telegraf.exe -sample-config'

closes #620
  • Loading branch information
cwegener authored and sparrc committed Jan 30, 2016
1 parent 38c4111 commit 4ea3f82
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions plugins/inputs/win_perf_counters/win_perf_counters.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ var sampleConfig string = `
ObjectName = "Processor"
Instances = ["*"]
Counters = [
"% Idle Time", "% Interrupt Time",
"% Privileged Time", "% User Time",
"% Processor Time"
"%% Idle Time", "%% Interrupt Time",
"%% Privileged Time", "%% User Time",
"%% Processor Time"
]
Measurement = "win_cpu"
# Set to true to include _Total instance when querying for all (*).
Expand All @@ -46,8 +46,8 @@ var sampleConfig string = `
ObjectName = "LogicalDisk"
Instances = ["*"]
Counters = [
"% Idle Time", "% Disk Time","% Disk Read Time",
"% Disk Write Time", "% User Time", "Current Disk Queue Length"
"%% Idle Time", "%% Disk Time","%% Disk Read Time",
"%% Disk Write Time", "%% User Time", "Current Disk Queue Length"
]
Measurement = "win_disk"
Expand Down

0 comments on commit 4ea3f82

Please sign in to comment.