build runner: fix typo in max rss display

This commit is contained in:
Andrew Kelley 2023-03-05 17:48:01 -07:00
parent d3cbbe0b1e
commit 6377aad23a

View File

@ -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) {