more postgresql type fixes
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-04-20 16:35:23 +10:00
parent aa0d8099c7
commit 83bd4b2026
5 changed files with 56 additions and 7 deletions
+1 -1
View File
@@ -3418,7 +3418,7 @@ SELECT
"IsTemplate",
MAX("PoweredOn") AS "PoweredOn",
"SrmPlaceholder", "VmUuid",
SUM("SamplesPresent") AS "SamplesPresent",
CAST(SUM("SamplesPresent") AS BIGINT) AS "SamplesPresent",
CASE WHEN totals.total_samples > 0
THEN SUM(CASE WHEN "AvgVcpuCount" IS NOT NULL THEN "AvgVcpuCount" * total_samples_day ELSE 0 END) / totals.total_samples
ELSE NULL END AS "AvgVcpuCount",