web: before compile & fix marathon

This commit is contained in:
2026-03-08 14:54:09 +01:00
parent 66d49ea8d5
commit 738ba5bd37
4 changed files with 189 additions and 6 deletions

View File

@@ -124,9 +124,9 @@ const Handler = struct {
const self: *Handler = @ptrCast(@alignCast(ctx));
const time_ns = self.timer.read();
const time_us = time_ns / std.time.ns_per_us;
const time_us_ceil = (time_ns + std.time.ns_per_us - 1) / std.time.ns_per_us;
std.log.info("{s} {s} [{d}]", .{ @tagName(self.route.method), self.route.pathname, time_us });
std.log.info("{s} {s} (<={} [µs])", .{ @tagName(self.route.method), self.route.pathname, time_us_ceil });
self.allocator.destroy(self);
}