We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79a105a commit 0177193Copy full SHA for 0177193
src/console.rs
@@ -284,12 +284,16 @@ impl nutmeg::Model for LabModel {
284
}
285
if let Some(lab_start_time) = self.lab_start_time {
286
let elapsed = lab_start_time.elapsed();
287
+ let percent = if self.n_mutants > 0 {
288
+ ((self.i_mutant.saturating_sub(1) as f64) / (self.n_mutants as f64) * 100.0)
289
+ .round()
290
+ } else {
291
+ 0.0
292
+ };
293
write!(
294
s,
- "Trying mutant {}/{}, {} done",
- self.i_mutant,
- self.n_mutants,
- nutmeg::percent_done(self.i_mutant.saturating_sub(1), self.n_mutants),
295
+ "Trying mutant {}/{}, {percent}% done",
296
+ self.i_mutant, self.n_mutants,
297
)
298
.unwrap();
299
if self.mutants_missed > 0 {
0 commit comments