mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
build runner: fix typo in max rss display
This commit is contained in:
parent
d3cbbe0b1e
commit
6377aad23a
@ -527,10 +527,8 @@ fn printTreeStep(
|
||||
if (s.result_peak_rss != 0) {
|
||||
const rss = s.result_peak_rss;
|
||||
try ttyconf.setColor(stderr, .Dim);
|
||||
if (rss >= 1000_000_000_000) {
|
||||
try stderr.writer().print(" MaxRSS:{d}G", .{rss / 1000_000_000_000});
|
||||
} else if (rss >= 1000_000_000) {
|
||||
try stderr.writer().print(" MaxRSS:{d}M", .{rss / 1000_000_000});
|
||||
if (rss >= 1000_000_000) {
|
||||
try stderr.writer().print(" MaxRSS:{d}G", .{rss / 1000_000_000});
|
||||
} else if (rss >= 1000_000) {
|
||||
try stderr.writer().print(" MaxRSS:{d}M", .{rss / 1000_000});
|
||||
} else if (rss >= 1000) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user