Skip to content

Commit 2ad31b2

Browse files
committed
Fix max memory bug: we want 64MB max, not 64GB max
1 parent 9fa7050 commit 2ad31b2

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

build.zig.zon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.{
22
.name = .github_stats,
3-
.version = "2.0.0-rc.2",
3+
.version = "2.0.0-rc.3",
44
.fingerprint = 0x80bb05a632422e37, // Changing this has security and trust implications.
55
.minimum_zig_version = "0.15.2",
66
.dependencies = .{},

src/git.zig

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,7 @@ pub fn getLinesChanged(
8989
const log = try std.process.Child.run(.{
9090
.allocator = allocator,
9191
.argv = log_args,
92-
.max_output_bytes = @min(
93-
64 * 1024 * 1024 * 1024,
94-
std.math.maxInt(usize),
95-
),
92+
.max_output_bytes = 64 * 1024 * 1024,
9693
});
9794
switch (log.term) {
9895
.Exited => |v| if (v != 0) return error.LogFailed,

0 commit comments

Comments
 (0)