From b6e6f831441984ce80e29d1a97b90eab1d4831be Mon Sep 17 00:00:00 2001 From: yufansong Date: Tue, 30 Jan 2024 20:48:57 -0800 Subject: [PATCH] format --- dashboard/pages/api/metric.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dashboard/pages/api/metric.ts b/dashboard/pages/api/metric.ts index 8930426757dfd..b8f4eb92f6a2a 100644 --- a/dashboard/pages/api/metric.ts +++ b/dashboard/pages/api/metric.ts @@ -70,7 +70,7 @@ function convertFromMap(map: Map): BackPressureRateInfo[] { return result } -function covnertToBackPressureMetrics(bp_rates: BackPressureRateInfo[]): BackPressuresMetrics { +function convertToBackPressureMetrics(bp_rates: BackPressureRateInfo[]): BackPressuresMetrics { const bp_metrics: BackPressuresMetrics = { outputBufferBlockingDuration: [], } @@ -108,7 +108,7 @@ export function calculateBPRate( } }) - return covnertToBackPressureMetrics(convertFromMap(result)) + return convertToBackPressureMetrics(convertFromMap(result)) } export const BackPressureInfo = {