Skip to content

Commit

Permalink
fix: use 1ms for finished TL_ events
Browse files Browse the repository at this point in the history
  • Loading branch information
mbehr1 committed Jun 8, 2021
1 parent e46ae84 commit adc0541
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion media/timeLinesChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ const addTimeLineData = (groupName, labelName, valueName, time, options) => {
const valueTooltip = valueParts[1]; // works for isFinished as well -> ''
const valueColor = valueParts[2]; // could be undef.
label.data.push({
timeRange: [time, isFinished ? time + 10 : time + (3600) * 1000], // todo determine better end
timeRange: [time, isFinished ? new Date(time.valueOf() + 1) : new Date(time.valueOf() + (3600) * 1000)], // todo determine better end
val: { g: groupName, l: labelName, v: labelVal, c: valueColor, t: valueTooltip?.length ? valueTooltip : undefined },
labelVal: labelVal,
isFinished: isFinished,
Expand Down

0 comments on commit adc0541

Please sign in to comment.