Skip to content

Commit

Permalink
put the influx segment count validation catch-all back in
Browse files Browse the repository at this point in the history
Signed-off-by: Sean Porter <[email protected]>
  • Loading branch information
portertech committed Dec 11, 2018
1 parent 5324c9f commit 4f0c7fa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,10 @@ func CreateInfluxMetrics(samples model.Vector, metricPrefix string) string {

metric += fmt.Sprintf(" value=%s %d\n", value, timestamp)

metrics += metric
segments := strings.Split(metric, " ")
if len(segments) == 3 {
metrics += metric
}
}

return metrics
Expand Down

0 comments on commit 4f0c7fa

Please sign in to comment.