File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/views/codeAnalytics/InsightListView/ItemRender Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -12,13 +12,13 @@ export class SpanItemHtmlRendering{
1212 public getBestUnit ( previousDuration : Duration , currentDuration : Duration ) {
1313 let change = moment . duration ( Math . abs ( previousDuration . raw - currentDuration . raw ) / 1000000 , "ms" ) ;
1414 if ( change . seconds ( ) < 60 && change . seconds ( ) >= 1 ) {
15- return `${ change . seconds ( ) . toPrecision ( 1 ) } sec` ;
15+ return `${ change . seconds ( ) . toFixed ( 1 ) } sec` ;
1616 }
1717 if ( change . milliseconds ( ) < 1000 && change . milliseconds ( ) > 1 ) {
18- return `${ change . milliseconds ( ) * 1000 } ms` ;
18+ return `${ change . milliseconds ( ) . toFixed ( 1 ) } ms` ;
1919 }
2020 if ( change . minutes ( ) < 60 && change . minutes ( ) > 1 ) {
21- return `${ change . minutes ( ) . toPrecision ( 2 ) } min` ;
21+ return `${ change . minutes ( ) . toFixed ( 2 ) } min` ;
2222 }
2323 else {
2424 return change . humanize ( ) ;
You can’t perform that action at this time.
0 commit comments