From 2510c523b24e097d4ef740d97cabb24ac7b3fad3 Mon Sep 17 00:00:00 2001 From: Jarda Snajdr Date: Sat, 11 May 2024 08:57:12 +0200 Subject: [PATCH] Format stats better --- bin/plugin/commands/performance.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/plugin/commands/performance.js b/bin/plugin/commands/performance.js index 5ab597616f78d8..428e82c2f12127 100644 --- a/bin/plugin/commands/performance.js +++ b/bin/plugin/commands/performance.js @@ -146,7 +146,7 @@ function formatValue( metric, value ) { function printStats( m, s ) { const pp = fixed( ( 100 * ( s.q75 - s.q50 ) ) / s.q50 ); const mp = fixed( ( 100 * ( s.q50 - s.q25 ) ) / s.q50 ); - return `${ formatValue( m, s.q50 ) } ms (±${ pp }/${ mp }%)`; + return `${ formatValue( m, s.q50 ) } +${ pp }% -${ mp }% (${ s.cnt })`; } /**