diff --git a/crates/coremem/src/meas.rs b/crates/coremem/src/meas.rs index e7c8290..744cc80 100644 --- a/crates/coremem/src/meas.rs +++ b/crates/coremem/src/meas.rs @@ -76,7 +76,11 @@ impl Measurement { use MeasurementValue::*; match self.value { Field(v) => format!("{}{}", v, self.unit), - Float(f) => SiScale::format_short(f, &self.unit), + Float(f) => if self.unit != "" { + SiScale::format_short(f, &self.unit) + } else { + f.to_string() + }, Int(u) => format!("{}{}", u, self.unit), Dim(v) => format!("{}x{}x{}{}", v.x(), v.y(), v.z(), self.unit), }