File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2424,9 +2424,9 @@ export class Message {
24242424 if ( stats && stats . memory_stats && stats . memory_stats . usage ) memory = stats . memory_stats . usage ;
24252425 if ( stats && stats . memory_stats && stats . memory_stats . limit ) memorylimit = stats . memory_stats . limit ;
24262426 item . metrics = {
2427- cpu : parseFloat ( ( stats . cpu_stats . cpu_usage . usage_in_usermode / 1024 / 1024 ) . toString ( ) ) . toFixed ( 2 ) + "n" ,
2428- memory : parseFloat ( ( stats . memory_stats . usage / 1024 / 1024 ) . toString ( ) ) . toFixed ( 2 ) + "Mi" ,
2429- memorylimit : parseFloat ( ( stats . memory_stats . limit / 1024 / 1024 ) . toString ( ) ) . toFixed ( 2 ) + "Mi"
2427+ cpu : parseFloat ( ( cpu_usage / 1024 / 1024 ) . toString ( ) ) . toFixed ( 2 ) + "n" ,
2428+ memory : parseFloat ( ( memory / 1024 / 1024 ) . toString ( ) ) . toFixed ( 2 ) + "Mi" ,
2429+ memorylimit : parseFloat ( ( memorylimit / 1024 / 1024 ) . toString ( ) ) . toFixed ( 2 ) + "Mi"
24302430 } ;
24312431 result . push ( item ) ;
24322432 }
You can’t perform that action at this time.
0 commit comments