bench: Cloud seeding
Some checks failed
CI / Test (OTP 27.2 / Elixir 1.18.2) (push) Failing after 0s
CI / Test (OTP 28.4 / Elixir 1.19.4 + E2E) (push) Failing after 0s

This commit is contained in:
2026-03-20 14:19:58 +01:00
parent 6bd0143de4
commit 070464f2eb
3 changed files with 216 additions and 38 deletions

View File

@@ -215,9 +215,12 @@ export function countEventsWritten(clientResults) {
for (const cr of clientResults) {
if (cr.status !== "ok") continue;
const eventSection = cr.sections?.event;
if (eventSection?.message_stats?.complete) {
total += Number(eventSection.message_stats.complete) || 0;
}
if (!eventSection?.message_stats) continue;
const complete = Number(eventSection.message_stats.complete) || 0;
const error = Number(eventSection.message_stats.error) || 0;
const accepted = Math.max(0, complete - error);
total += accepted;
}
return total;
}