Skip to content

Commit 6123a69

Browse files
authored
Use friendly units for memcheck (#109)
Fixes #99
1 parent ea6429a commit 6123a69

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/checkers/preinstall/system.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,11 @@ impl SystemChecks {
248248

249249
let mut result = Passed;
250250
if total_mem < MINIMUM_MEMORY {
251-
let reason = format!("total memory is less than {}", MINIMUM_MEMORY);
251+
let reason = format!(
252+
"total memory is {} but need at least {}",
253+
ByteSize(total_mem),
254+
ByteSize(MINIMUM_MEMORY)
255+
);
252256
result = Failed(reason);
253257
}
254258
CheckResult::new(&name, result)

0 commit comments

Comments
 (0)