Dominik Rusovac <[email protected]> writes:

> To align with the CPU utilization presentation in the web ui, this adds
> "CPU(s)" as the unit of the total number of CPUs displayed above to the
> right of the CPU utilization bar.
>
> Signed-off-by: Dominik Rusovac <[email protected]>
> ---
>  src/pages/page_dashboard.rs | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/pages/page_dashboard.rs b/src/pages/page_dashboard.rs
> index 93e0f83..9bd6141 100644
> --- a/src/pages/page_dashboard.rs
> +++ b/src/pages/page_dashboard.rs
> @@ -122,7 +122,7 @@ impl PvePageDashboard {
>                  tiles.push(
>                      icon_list_tile(Fa::new("cpu"), tr!("CPU"), (), 
> ()).with_child(list_tile_usage(
>                          format!("{cpu_percentage:.2}%"),
> -                        maxcpu.to_string(),
> +                        format!("{maxcpu} CPU(s)"),

This should be translatable, see e.g.
https://lore.proxmox.com/all/[email protected]/.

>                          cpu as f32,
>                      )),
>                  );

-- 
Maximiliano



Reply via email to