Skip to content

Commit

Permalink
fix parser
Browse files Browse the repository at this point in the history
  • Loading branch information
sundy-li committed Jul 29, 2019
1 parent 81c89c4 commit 8e6ec9f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions parser/csv.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func (c *CsvParser) Parse(bs []byte) model.Metric {
msLen := len(msgs)
for i, key := range c.title {
if i >= msLen {
continue
continue
}
v[key] = msgs[i]
}
Expand All @@ -39,11 +39,6 @@ func (c *CsvMetric) GetString(key string) string {
return v
}

func (c *CsvMetric) GetArray(key string, t string) []interface{} {
panic("csv unsupport Array ")
return nil
}

func (c *CsvMetric) GetFloat(key string) float64 {
v, _ := c.mp[key]
n, _ := strconv.ParseFloat(v, 64)
Expand Down

0 comments on commit 8e6ec9f

Please sign in to comment.