diff --git a/tokio-console/src/view/task.rs b/tokio-console/src/view/task.rs index 8f3024520..8a6494464 100644 --- a/tokio-console/src/view/task.rs +++ b/tokio-console/src/view/task.rs @@ -204,8 +204,9 @@ impl TaskView { if let Some(since) = task.since_wake(now) { wakeups.reserve(3); wakeups.push(Span::raw(", ")); - wakeups.push(bold("last woken:")); - wakeups.push(Span::from(format!(" {:?} ago", since))); + wakeups.push(bold("last woken: ")); + wakeups.push(styles.time_units(since, view::DUR_LIST_PRECISION, None)); + wakeups.push(Span::raw(" ago")); } waker_stats.push(Spans::from(wakeups));