prepend 'inputs.' to --test output check

This commit is contained in:
Cameron Sparr 2017-02-13 10:33:51 +00:00
parent 4b289fc60d
commit d373fbbaaf
1 changed files with 1 additions and 1 deletions

View File

@ -209,7 +209,7 @@ func (a *Agent) Test() error {
// Special instructions for some inputs. cpu, for example, needs to be // Special instructions for some inputs. cpu, for example, needs to be
// run twice in order to return cpu usage percentages. // run twice in order to return cpu usage percentages.
switch input.Name() { switch input.Name() {
case "cpu", "mongodb", "procstat": case "inputs.cpu", "inputs.mongodb", "inputs.procstat":
time.Sleep(500 * time.Millisecond) time.Sleep(500 * time.Millisecond)
fmt.Printf("* Plugin: %s, Collection 2\n", input.Name()) fmt.Printf("* Plugin: %s, Collection 2\n", input.Name())
if err := input.Input.Gather(acc); err != nil { if err := input.Input.Gather(acc); err != nil {