mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
Merge #7179
7179: Less confusing instr stat r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
commit
d8dfcc2c0c
@ -76,7 +76,11 @@ impl fmt::Display for StopWatchSpan {
|
||||
instructions /= 1000;
|
||||
prefix = "m"
|
||||
}
|
||||
write!(f, ", {}{}i", instructions, prefix)?;
|
||||
if instructions > 10000 {
|
||||
instructions /= 1000;
|
||||
prefix = "g"
|
||||
}
|
||||
write!(f, ", {}{}instr", instructions, prefix)?;
|
||||
}
|
||||
if let Some(memory) = self.memory {
|
||||
write!(f, ", {}", memory)?;
|
||||
|
Loading…
Reference in New Issue
Block a user