Merge pull request #43 from marcosnils/mysql_fix

Fix mysql plugin due to test accumulator refactor
This commit is contained in:
Todd Persen 2015-07-05 16:44:13 -07:00
commit 350f91601c
2 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ func (m *Mysql) gatherServer(serv string, acc plugins.Accumulator) error {
rows, err := db.Query(`SHOW /*!50002 GLOBAL */ STATUS`) rows, err := db.Query(`SHOW /*!50002 GLOBAL */ STATUS`)
if err != nil { if err != nil {
return nil return err
} }
for rows.Next() { for rows.Next() {

View File

@ -39,7 +39,7 @@ func TestMysqlGeneratesMetrics(t *testing.T) {
var count int var count int
for _, p := range acc.Points { for _, p := range acc.Points {
if strings.HasPrefix(p.Name, prefix.prefix) { if strings.HasPrefix(p.Measurement, prefix.prefix) {
count++ count++
} }
} }