File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -462,23 +462,23 @@ function populateThreadStats(data, selectedThreadId = null) {
462462 // GIL Held
463463 const gilHeldPct = threadStats . has_gil_pct || 0 ;
464464 const gilHeldPctElem = document . getElementById ( 'gil-held-pct' ) ;
465- if ( gilHeldPctElem ) gilHeldPctElem . textContent = `${ gilHeldPct . toFixed ( 1 ) } %` ;
465+ if ( gilHeldPctElem ) gilHeldPctElem . textContent = `${ gilHeldPct . toFixed ( 2 ) } %` ;
466466
467467 // GIL Released (threads running without GIL)
468468 const gilReleasedPct = threadStats . on_cpu_pct || 0 ;
469469 const gilReleasedPctElem = document . getElementById ( 'gil-released-pct' ) ;
470- if ( gilReleasedPctElem ) gilReleasedPctElem . textContent = `${ gilReleasedPct . toFixed ( 1 ) } %` ;
470+ if ( gilReleasedPctElem ) gilReleasedPctElem . textContent = `${ gilReleasedPct . toFixed ( 2 ) } %` ;
471471
472472 // Waiting for GIL
473473 const gilWaitingPct = threadStats . gil_requested_pct || 0 ;
474474 const gilWaitingPctElem = document . getElementById ( 'gil-waiting-pct' ) ;
475- if ( gilWaitingPctElem ) gilWaitingPctElem . textContent = `${ gilWaitingPct . toFixed ( 1 ) } %` ;
475+ if ( gilWaitingPctElem ) gilWaitingPctElem . textContent = `${ gilWaitingPct . toFixed ( 2 ) } %` ;
476476 }
477477
478478 // Garbage Collection (always show)
479479 const gcPct = threadStats . gc_pct || 0 ;
480480 const gcPctElem = document . getElementById ( 'gc-pct' ) ;
481- if ( gcPctElem ) gcPctElem . textContent = `${ gcPct . toFixed ( 1 ) } %` ;
481+ if ( gcPctElem ) gcPctElem . textContent = `${ gcPct . toFixed ( 2 ) } %` ;
482482 }
483483}
484484
You can’t perform that action at this time.
0 commit comments