tangled
alpha
login
or
join now
zzstoatzz.io
/
music-atmosphere-feed
0
fork
atom
bsky feeds about music
music-atmosphere-feed.plyr.fm/
bsky
feed
zig
0
fork
atom
overview
issues
pulls
pipelines
fix float calculation, update zat hash
zzstoatzz.io
2 months ago
6a56696e
c1810a26
1/1
ci.yml
success
12s
+2
-2
2 changed files
expand all
collapse all
unified
split
build.zig.zon
src
server
dashboard.zig
+1
-1
build.zig.zon
···
14
14
},
15
15
.zat = .{
16
16
.url = "https://tangled.org/zzstoatzz.io/zat/archive/main",
17
17
-
.hash = "zat-0.0.2-5PuC7hxQAQAT307GIKi_UAix7TXNX-WlN1meauJjrYK3",
17
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
192
-
const pct: f64 = @as(f64, @floatFromInt(p.count * 100)) / @as(f64, @floatFromInt(total));
192
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">