@@ -2,8 +2,8 @@ import {createUrlWithAppendedParams, getUrlParams} from "../utils/navigation";
2
2
import { postMsgpack } from "../utils/requests" ;
3
3
import { SELF_PROFILE_DATA_URL } from "../urls" ;
4
4
5
- function to_seconds ( time ) {
6
- return time / 1000000000 ;
5
+ function normalize_value ( value ) {
6
+ return value ;
7
7
}
8
8
9
9
function fmt_delta ( to , delta , is_integral_delta ) {
@@ -267,14 +267,14 @@ function populate_data(data, state: Selector) {
267
267
t . setAttribute ( "title" , "% of cpu-time stat" ) ;
268
268
}
269
269
}
270
- td ( row , to_seconds ( cur . self_time ) . toFixed ( 3 ) ) ;
270
+ td ( row , normalize_value ( cur . self_time ) ) ;
271
271
if ( delta ) {
272
272
td (
273
273
row ,
274
274
fmt_delta (
275
- to_seconds ( cur . self_time ) ,
276
- to_seconds ( delta . self_time ) ,
277
- false
275
+ normalize_value ( cur . self_time ) ,
276
+ normalize_value ( delta . self_time ) ,
277
+ true
278
278
) ,
279
279
true
280
280
) ;
@@ -291,16 +291,14 @@ function populate_data(data, state: Selector) {
291
291
} else {
292
292
td ( row , "-" , true ) ;
293
293
}
294
- td ( row , to_seconds ( cur . incremental_load_time ) . toFixed ( 3 ) ) . classList . add (
295
- "incr"
296
- ) ;
294
+ td ( row , normalize_value ( cur . incremental_load_time ) ) . classList . add ( "incr" ) ;
297
295
if ( delta ) {
298
296
td (
299
297
row ,
300
298
fmt_delta (
301
- to_seconds ( cur . incremental_load_time ) ,
302
- to_seconds ( delta . incremental_load_time ) ,
303
- false
299
+ normalize_value ( cur . incremental_load_time ) ,
300
+ normalize_value ( delta . incremental_load_time ) ,
301
+ true
304
302
) ,
305
303
true
306
304
) . classList . add ( "incr" ) ;
0 commit comments