Skip to content

Commit 3e53c7f

Browse files
committed
formatting, type fix
1 parent 27cab96 commit 3e53c7f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/shadowbox/server/manager_metrics.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,10 @@ export class PrometheusManagerMetrics implements ManagerMetrics {
165165

166166
for (const entryIndex in result.values) {
167167
const [currentTimestamp, nextValue] = result.values[entryIndex];
168-
const [previousTimestamp, currentValue] = bandwidthRangeValues[entryIndex] ?? [Infinity, 0];
168+
const [previousTimestamp, currentValue] = bandwidthRangeValues[entryIndex] ?? [
169+
Infinity,
170+
'0',
171+
];
169172

170173
bandwidthRangeValues[entryIndex] = [
171174
Math.min(previousTimestamp, currentTimestamp),

0 commit comments

Comments
 (0)