[pve-devel] applied: [PATCH manager] fix #5293: ceph status: fix division-by-zero when calculating usage

Thomas Lamprecht t.lamprecht at proxmox.com
Tue Mar 19 18:18:27 CET 2024


On 12/03/2024 10:13, Christoph Heiss wrote:
> Fixes #5293 [0]. This happens when no OSDs are created yet and thus the
> total space is 0, which leads to a division-by-zero.
> 
> Add a simple check if the total space is greater than 0.
> 
> [0] https://bugzilla.proxmox.com/show_bug.cgi?id=5293
> 
> Signed-off-by: Christoph Heiss <c.heiss at proxmox.com>
> ---
>  www/manager6/ceph/Status.js | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
>

applied, thanks!




More information about the pve-devel mailing list