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:
bors[bot] 2021-01-06 15:16:56 +00:00 committed by GitHub
commit d8dfcc2c0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)?;