Skip to content

Commit

Permalink
"parse" now filters out the entire first batch of measurements, as if…
Browse files Browse the repository at this point in the history
… they didn't happen
  • Loading branch information
kent007 committed Mar 5, 2021
1 parent de1494e commit 45a99e9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion top/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,10 @@ func Parse(s string) ([]Row, int, error) {
command := strings.Join(row[len(Headers)-1:], " ")
row[len(row)-1] = command
}
rows = append(rows, row)
//again, want to skip the first iteration, we don't care
if iterations > 0 {
rows = append(rows, row)
}
}

type result struct {
Expand Down

0 comments on commit 45a99e9

Please sign in to comment.