Represent memory usage as f64 as well

This commit is contained in:
David Peter authored and David Peter committed 2026-10-05 16:00:08 +02:00
1 parent 27ad0fb65e
commit 6b4e9eb5c2
8 files changed
+93 -79

No files matched your search

+2 -2
View File
@@ -9,7 +9,7 @@ use crate::options::{
CmdFailureAction, CommandInputPolicy, CommandOutputPolicy, Options, OutputStyleOption, Shell,
};
use crate::output::progress_bar::get_progress_bar;
use crate::quantity::{byte, second, Information, Time, TimeQuantity};
use crate::quantity::{second, Information, InformationQuantity, Time, TimeQuantity};
use crate::timer::execute_and_measure;
use crate::util::randomized_environment_offset;
@@ -348,7 +348,7 @@ impl Executor for MockExecutor {
time_wall_clock: Self::extract_time(command.get_command_line()),
time_user: Time::zero(),
time_system: Time::zero(),
peak_memory_usage: Information::new::<byte>(0),
peak_memory_usage: Information::zero(),
exit_status,
})
}