authorgravatar for dev@fitti.ioFitti <dev@fitti.io> 2026-06-06 10:08:55+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-06-06 23:39:13+02:00
log6297afc66cb2dbe563af104dff91c1688e053674
treeaf5eef7d802f12c0efd6029ab53533fee84a1825
parent6aa93facbf75e732b0e8691b676db351e86ad113

webui: fix 'Unique Runs' and 'Coverage' percentage


1 files changed, 2 insertions(+), 2 deletions(-)

lib/build-web/fuzz.zig+2-2
...@@ -285,10 +285,10 @@ fn updateStats() error{OutOfMemory}!void {...@@ -285,10 +285,10 @@ fn updateStats() error{OutOfMemory}!void {
285 , .{285 , .{
286 hdr.n_runs,286 hdr.n_runs,
287 hdr.unique_runs,287 hdr.unique_runs,
288 @as(f64, @floatFromInt(hdr.unique_runs)) / @as(f64, @floatFromInt(hdr.n_runs)),288 @as(f64, @floatFromInt(hdr.unique_runs)) / @as(f64, @floatFromInt(hdr.n_runs)) * 100,
289 covered_src_locs,289 covered_src_locs,
290 total_src_locs,290 total_src_locs,
291 @as(f64, @floatFromInt(covered_src_locs)) / @as(f64, @floatFromInt(total_src_locs)),291 @as(f64, @floatFromInt(covered_src_locs)) / @as(f64, @floatFromInt(total_src_locs)) * 100,
292 avg_speed,292 avg_speed,
293 });293 });
294 defer gpa.free(html);294 defer gpa.free(html);