@@ -122,6 +122,9 @@ func (n *NTPQ) Gather(acc telegraf.Accumulator) error {
|
|||||||
if index == -1 {
|
if index == -1 {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
if fields[index] == "-" {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
if key == "when" {
|
if key == "when" {
|
||||||
when := fields[index]
|
when := fields[index]
|
||||||
@@ -169,6 +172,9 @@ func (n *NTPQ) Gather(acc telegraf.Accumulator) error {
|
|||||||
if index == -1 {
|
if index == -1 {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
if fields[index] == "-" {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
m, err := strconv.ParseFloat(fields[index], 64)
|
m, err := strconv.ParseFloat(fields[index], 64)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user