Skip to content

Commit

Permalink
fix 3
Browse files Browse the repository at this point in the history
  • Loading branch information
theyosh committed May 3, 2024
1 parent 7e2ebdf commit 8301757
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gui/helpers/graph-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ export const extendGraphData = (data) => {
let now = new Date();

let end = structuredClone(data[data.length-1]);
end.timestamp = Math.round(now.getTime() / 1000);
end.timestamp = Math.round(now.getTime() / 1000000);

now.setDate(now.getDate() - 1);
let start = structuredClone(data[0]);
start.timestamp = Math.round(now.getTime() / 1000);
start.timestamp = Math.round(now.getTime() / 1000000);

return [end,...data,start]
return [start,...data,end]
}

export const exportGraphPeriod = async (type, graph) => {
Expand Down

0 comments on commit 8301757

Please sign in to comment.