Signed-off-by: Aaron Lauterer <a.laute...@proxmox.com> --- AFAIK we do not have negative sizes anywhere, and if, it is an indication that something is wrong.
src/Utils.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Utils.js b/src/Utils.js index ef72630..8cdbe86 100644 --- a/src/Utils.js +++ b/src/Utils.js @@ -688,6 +688,9 @@ utilities: { }, format_size: function(size, useSI) { + if (size < 0) { + return gettext("N/A"); + } let units = ['', 'K', 'M', 'G', 'T', 'P', 'E', 'Z', 'Y']; let order = 0; const baseValue = useSI ? 1000 : 1024; -- 2.30.2 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel