Skip to content

Commit

Permalink
fixed #34
Browse files Browse the repository at this point in the history
  • Loading branch information
toni-moreno committed Mar 14, 2019
1 parent 8a64bfc commit d854a89
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/agent/devices/nmon/nmonfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,9 @@ func (nf *NmonFile) ProcessPending(points *pointarray.PointArray, tags map[strin

} else {
nf.log.Errorf("ProcessPending: ERROR: first Pending data is not ZZZZZ (Time) section got this one [%s]", firstline)
if len(nf.PendingLines) > 1 {
nf.PendingLines = nf.PendingLines[1:]
}
//PENDING what to do if this happens?
return
}
Expand All @@ -396,7 +399,7 @@ func (nf *NmonFile) ProcessPending(points *pointarray.PointArray, tags map[strin
t, err := nf.convertTimeStamp(ts)
if err != nil {
nf.log.Errorf("ProcessPending: Error on Timestamp conversion %s", err)
continue
return
}
nf.ProcessChunk(points, tags, t, tsID, nmonChunk)
nf.LastTime = t
Expand Down

0 comments on commit d854a89

Please sign in to comment.