keep filling datapoints until date equals

This commit is contained in:
Danny van Kooten 2016-12-08 09:26:45 +01:00
parent 93ee878bd3
commit db819ff544
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ func fillDatapoints(start int64, end int64, step time.Duration, points []Datapoi
endTime := time.Unix(end, 0)
newPoints := make([]Datapoint, 0)
for startTime.Before(endTime) {
for startTime.Before(endTime) || startTime.Equal(endTime) {
point := Datapoint{
Count: 0,
Label: startTime.Format("2006-01-02"),