mirror of https://github.com/apache/nifi.git
[NIFI-14032] - Format Core Load Average in Cluster system table to 2 decimal places. (#9541)
This closes #9541
This commit is contained in:
parent
a760f0a8ee
commit
3ab426072d
|
@ -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>
|
||||
|
||||
|
|
|
@ -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 === '') {
|
||||
|
|
Loading…
Reference in New Issue