Skip to content

Commit 0d90bd6

Browse files
committed
refactor: do not round % download
1 parent b482607 commit 0d90bd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/install.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ pub fn download_tarball(alloc: Allocator, client: *Client, tb_url: []const u8, t
132132
_ = try tb_writer.write(buff[0..len]);
133133

134134
dlnow += @floatFromInt(len);
135-
const pcnt_complete: u8 = @intFromFloat(@round(dlnow * 100 / total_size_double));
135+
const pcnt_complete: u8 = @intFromFloat(dlnow * 100 / total_size_double);
136136
var timer = try std.time.Timer.start();
137137
const newbars: u8 = pcnt_complete / 2;
138138
for (bars..newbars) |i| {

0 commit comments

Comments
 (0)