Fix type error using URL as a string

This commit is contained in:
Evan Phoenix 2015-06-23 14:51:38 -07:00
parent 5fbd07b146
commit a1f7d5549b
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ func (g *Redis) gatherServer(addr *url.URL, acc plugins.Accumulator) error {
continue
}
tags := map[string]string{"host": addr}
tags := map[string]string{"host": addr.String()}
val := strings.TrimSpace(parts[1])
ival, err := strconv.ParseUint(val, 10, 64)