Skip to content

Commit

Permalink
tiny bug, needed unix sec not unix ms
Browse files Browse the repository at this point in the history
  • Loading branch information
pickledish committed Jul 9, 2024
1 parent 0ab5fe4 commit 65e86b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/query/influx.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func QueryResultToPoints(rows []QueryResult) map[string][]Point {
timeserieses[row.GroupKey] = make([]Point, 0)
}

point := Point{row.WindowStart.UnixMilli(), row.Hits, row.Bytes}
point := Point{row.WindowStart.Unix(), row.Hits, row.Bytes}
timeserieses[row.GroupKey] = append(timeserieses[row.GroupKey], point)
}

Expand Down

0 comments on commit 65e86b0

Please sign in to comment.