fix(striker-ui-api): min VG sizes instead of sum when getting anvil node storage

main
Tsu-ba-me 1 year ago
parent 2d478e40a1
commit f56cf55f04
  1. 4
      striker-ui-api/src/lib/request_handlers/anvil/getAnvilStore.ts

@ -43,8 +43,8 @@ export const getAnvilStore: RequestHandler<
b.storage_group_name, b.storage_group_name,
d.scan_lvm_vg_size, d.scan_lvm_vg_size,
d.scan_lvm_vg_free, d.scan_lvm_vg_free,
SUM(d.scan_lvm_vg_size) AS total_vg_size, MIN(d.scan_lvm_vg_size) AS total_vg_size,
SUM(d.scan_lvm_vg_free) AS total_vg_free MIN(d.scan_lvm_vg_free) AS total_vg_free
FROM anvils AS a FROM anvils AS a
JOIN storage_groups AS b JOIN storage_groups AS b
ON a.anvil_uuid = b.storage_group_anvil_uuid ON a.anvil_uuid = b.storage_group_anvil_uuid

Loading…
Cancel
Save