mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-12 22:49:03 +08:00
fix: show timeline in decimals (#188)
This commit is contained in:
parent
2e71230bbf
commit
77abb47b4c
@ -176,8 +176,8 @@ const TraceGanttChart = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
let paddingLeft = 0;
|
let paddingLeft = 0;
|
||||||
let startTime = parseInt(record.startTime);
|
let startTime = parseFloat(record.startTime);
|
||||||
let duration = parseInt((record.time / 1000000).toFixed(2));
|
let duration = parseFloat((record.time / 1000000).toFixed(2));
|
||||||
paddingLeft = parseInt(getPaddingLeft(startTime - minGlobal, maxGlobal - minGlobal, tabsContainerWidth));
|
paddingLeft = parseInt(getPaddingLeft(startTime - minGlobal, maxGlobal - minGlobal, tabsContainerWidth));
|
||||||
let textPadding = paddingLeft;
|
let textPadding = paddingLeft;
|
||||||
if(paddingLeft === tabsContainerWidth - 20){
|
if(paddingLeft === tabsContainerWidth - 20){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user