Commit fadf0052 authored by alain's avatar alain 💾

small fix in addMissingDataPoints function

parent da448a6d
......@@ -53,7 +53,7 @@ export const addMissingDataPoints = (data, start, end, granularity) => {
if (granularity === "hourly") interval = 3600000
if (granularity === "daily") interval = 86400000
for (let i = start; i < end; i = i + interval) {
for (let i = start; i <= end; i = i + interval) {
if(existing.indexOf(i) < 0) {
data.push({
timestamp: i,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment