Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix: chnage cpu_usage key reference to max_cpu_usage

TzeYiing7b99e9f78bae
diff --git a/studio/components/interfaces/BillingV2/Usage/Infrastructure.tsx b/studio/components/interfaces/BillingV2/Usage/Infrastructure.tsx
index 199fbc80fa7..b46e60bd771 100644
--- a/studio/components/interfaces/BillingV2/Usage/Infrastructure.tsx
+++ b/studio/components/interfaces/BillingV2/Usage/Infrastructure.tsx
@@ -226,7 +226,7 @@ const Infrastructure = ({
</div>
)}
- {attribute.key === 'cpu_usage' && (
+ {attribute.key === 'max_cpu_usage' && (
<p className="text-sm text-scale-1000">
Your compute instance has {currentComputeInstanceSpecs.cpu_cores} CPU cores.
</p>
diff --git a/studio/components/interfaces/BillingV2/Usage/Usage.constants.tsx b/studio/components/interfaces/BillingV2/Usage/Usage.constants.tsx
index 94f0b17eeb4..abb971d2db1 100644
--- a/studio/components/interfaces/BillingV2/Usage/Usage.constants.tsx
+++ b/studio/components/interfaces/BillingV2/Usage/Usage.constants.tsx
@@ -49,7 +49,7 @@ export const USAGE_CATEGORIES: CategoryMeta[] = [
attributes: [
{
anchor: 'cpu',
- key: 'cpu_usage',
+ key: 'max_cpu_usage',
attribute: 'max_cpu_usage',
name: 'CPU',
unit: 'percentage',