fix float calculation, update zat hash

Changed files
+2 -2
src
server
+1 -1
build.zig.zon
··· 14 14 }, 15 15 .zat = .{ 16 16 .url = "https://tangled.org/zzstoatzz.io/zat/archive/main", 17 - .hash = "zat-0.0.2-5PuC7hxQAQAT307GIKi_UAix7TXNX-WlN1meauJjrYK3", 17 + .hash = "zat-0.0.2-5PuC7hJbAQAx5-PTup-GhBRIRAKqjbyBlIQq8YTEObTu", 18 18 }, 19 19 }, 20 20 .paths = .{
+1 -1
src/server/dashboard.zig
··· 189 189 }; 190 190 191 191 for (platform_list) |p| { 192 - const pct: f64 = @as(f64, @floatFromInt(p.count * 100)) / @as(f64, @floatFromInt(total)); 192 + const pct: f64 = @as(f64, @floatFromInt(p.count)) / @as(f64, @floatFromInt(total)) * 100.0; 193 193 const bar_width: u64 = if (p.count > 0 and pct < 1.0) 1 else @intFromFloat(pct); 194 194 try w.print( 195 195 \\ <div class="platform-row"><span class="platform-name">{s}</span><div class="bar"><div class="bar-fill" style="width:{d}%;background:{s}"></div></div><span class="platform-pct">