From 4f88b1f536d265fbbf5a2c17c7508eedf4cb0fc3 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Fri, 28 May 2021 16:12:55 -0400 Subject: [PATCH] fix(cgi-bin): ensure sizes in get_shared_storage's response are JSON numbers --- cgi-bin/get_shared_storage | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cgi-bin/get_shared_storage b/cgi-bin/get_shared_storage index 3d2c44f8..b200a972 100755 --- a/cgi-bin/get_shared_storage +++ b/cgi-bin/get_shared_storage @@ -89,7 +89,9 @@ ORDER BY }}); push(@{$storage_groups}, { - name => $storage_group_name, total => $scan_lvm_vg_size, free => $scan_lvm_vg_free + name => $storage_group_name, + total => int($scan_lvm_vg_size), + free => int($scan_lvm_vg_free) }); }