mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-20 19:52:48 +00:00
less noisy status
This commit is contained in:
parent
cb21a21998
commit
a9373c4220
@ -34,7 +34,7 @@ pub fn handle_analyzer_status(world: ServerWorld, _: ()) -> Result<String> {
|
|||||||
let requests = world.latest_completed_requests.read();
|
let requests = world.latest_completed_requests.read();
|
||||||
for (idx, r) in requests.iter().enumerate() {
|
for (idx, r) in requests.iter().enumerate() {
|
||||||
let current = if idx == world.request_idx { "*" } else { " " };
|
let current = if idx == world.request_idx { "*" } else { " " };
|
||||||
writeln!(buf, "{:4}{}{:<36}: {:?}", r.id, current, r.method, r.duration).unwrap();
|
writeln!(buf, "{:4}{}{:<36}{}ms", r.id, current, r.method, r.duration.as_millis()).unwrap();
|
||||||
}
|
}
|
||||||
Ok(buf)
|
Ok(buf)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user