Replace all single percentage characters with double

percentage characters in sampleConfig string so that fmt.Printf
will interpret them as literal percentage characters when
running 'telegraf.exe -sample-config'

closes #620
This commit is contained in:
Christoph Wegener 2016-01-30 17:50:30 +11:00 committed by Cameron Sparr
parent 38c4111e6c
commit 4ea3f82e50
1 changed files with 5 additions and 5 deletions

View File

@ -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 (*).
@ -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"