Skip to content

Commit 27cab96

Browse files
committed
add zero vals
1 parent 938590f commit 27cab96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shadowbox/server/manager_metrics.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ export class PrometheusManagerMetrics implements ManagerMetrics {
174174
}
175175
}
176176

177-
const currentBandwidth = bandwidthRangeValues[bandwidthRangeValues.length - 1] ?? [];
177+
const currentBandwidth = bandwidthRangeValues[bandwidthRangeValues.length - 1] ?? [0, '0'];
178178

179179
// convert increase() into rate()
180180
serverMetrics.bandwidth.current.data.bytes =

0 commit comments

Comments
 (0)