From 371ada983252dcb8fa5cd1a01f774cd6b1a8be0e Mon Sep 17 00:00:00 2001 From: Quentin Date: Thu, 1 Feb 2024 21:24:19 +0100 Subject: [PATCH] [Angular] Simplify template for JvmMemoryComponent (#25041) --- .../metrics/blocks/jvm-memory/jvm-memory.component.html.ejs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/jvm-memory/jvm-memory.component.html.ejs b/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/jvm-memory/jvm-memory.component.html.ejs index d16a208dacbd..978b43265017 100644 --- a/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/jvm-memory/jvm-memory.component.html.ejs +++ b/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/jvm-memory/jvm-memory.component.html.ejs @@ -29,10 +29,6 @@
Committed : {{ entry.value.committed / 1048576 | number: '1.0-0' }}M
- } @else { - {{ entry.key }} {{ entry.value.used / 1048576 | number: '1.0-0' }}M - } - @if (entry.value.max !== -1) { {{ (entry.value.used * 100) / entry.value.max | number: '1.0-0' }}% + } @else { + {{ entry.key }} {{ entry.value.used / 1048576 | number: '1.0-0' }}M } }