[NIFI-14032] - Format Core Load Average in Cluster system table to 2 decimal places. (#9541)

This closes #9541
This commit is contained in:
Rob Fellows 2024-11-20 15:21:50 -05:00 committed by GitHub
parent a760f0a8ee
commit 3ab426072d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 2 deletions

View File

@ -63,8 +63,11 @@
Core Load Average
</div>
</th>
<td mat-cell *matCellDef="let item" [title]="item.snapshot.processorLoadAverage">
{{ item.snapshot.processorLoadAverage }}
<td
mat-cell
*matCellDef="let item"
[title]="formatFloat(item.snapshot.processorLoadAverage)">
{{ formatFloat(item.snapshot.processorLoadAverage) }}
</td>
</ng-container>

View File

@ -52,6 +52,10 @@ export class ClusterSystemTable extends ClusterTable<NodeSnapshot> {
return `${item.address}:${item.apiPort}`;
}
formatFloat(value: number): string {
return this.nifiCommon.formatFloat(value);
}
override filterPredicate(item: NodeSnapshot, filter: string): boolean {
const { filterTerm, filterColumn } = JSON.parse(filter);
if (filterTerm === '') {