From 2e0fc52a94a82aa724d82683e532071bfd1c2e01 Mon Sep 17 00:00:00 2001 From: Quentin Date: Thu, 1 Feb 2024 20:45:28 +0100 Subject: [PATCH] [Angular] Simplify template for JvmMemoryComponent --- .../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 } }