mirror of https://github.com/status-im/fathom.git
keep filling datapoints until date equals
This commit is contained in:
parent
93ee878bd3
commit
db819ff544
|
@ -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"),
|
||||
|
|
Loading…
Reference in New Issue