From 1dbf366c7897b5b1c547df55af9d3f7ee4a83112 Mon Sep 17 00:00:00 2001 From: Alex Gherghisan Date: Tue, 13 Aug 2024 10:06:18 +0000 Subject: [PATCH] fix: only record bytecode if >0 --- yarn-project/simulator/src/public/public_processor_metrics.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/yarn-project/simulator/src/public/public_processor_metrics.ts b/yarn-project/simulator/src/public/public_processor_metrics.ts index e20b90f2f73..2c7f36d28f5 100644 --- a/yarn-project/simulator/src/public/public_processor_metrics.ts +++ b/yarn-project/simulator/src/public/public_processor_metrics.ts @@ -85,6 +85,8 @@ export class PublicProcessorMetrics { totalBytecode += event.packedPublicBytecode.length; } - this.bytecodeDeployed.record(totalBytecode); + if (totalBytecode > 0) { + this.bytecodeDeployed.record(totalBytecode); + } } }