Skip to content

Commit

Permalink
fix: show timeline in decimals (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
nidhi-tandon committed Jun 25, 2021
1 parent 2e71230 commit 77abb47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/modules/Traces/TraceGanttChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ const TraceGanttChart = ({
}

let paddingLeft = 0;
let startTime = parseInt(record.startTime);
let duration = parseInt((record.time / 1000000).toFixed(2));
let startTime = parseFloat(record.startTime);
let duration = parseFloat((record.time / 1000000).toFixed(2));
paddingLeft = parseInt(getPaddingLeft(startTime - minGlobal, maxGlobal - minGlobal, tabsContainerWidth));
let textPadding = paddingLeft;
if(paddingLeft === tabsContainerWidth - 20){
Expand Down

0 comments on commit 77abb47

Please sign in to comment.