mirror of
https://github.com/status-im/fathom.git
synced 2025-03-01 03:20:27 +00:00
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)
|
endTime := time.Unix(end, 0)
|
||||||
newPoints := make([]Datapoint, 0)
|
newPoints := make([]Datapoint, 0)
|
||||||
|
|
||||||
for startTime.Before(endTime) {
|
for startTime.Before(endTime) || startTime.Equal(endTime) {
|
||||||
point := Datapoint{
|
point := Datapoint{
|
||||||
Count: 0,
|
Count: 0,
|
||||||
Label: startTime.Format("2006-01-02"),
|
Label: startTime.Format("2006-01-02"),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user