-
-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Format "last woken" time prettily #524
Comments
I can take this one on |
Unassigned @devanbenz, that was a mistake. |
yerke
added a commit
to yerke/console
that referenced
this issue
Feb 25, 2024
Use consistent pretty format for 'last woken' time in task view. Closes tokio-rs#524
yerke
added a commit
to yerke/console
that referenced
this issue
Feb 27, 2024
Use consistent pretty format for 'last woken' time in task view. Closes tokio-rs#524
hds
pushed a commit
that referenced
this issue
Feb 27, 2024
Use consistent pretty format for 'last woken' time in task view. This is the same pretty format that is used for all the other durations across the Tokio Console UI. Closes: #524
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What crate(s) in this repo are involved in the problem?
tokio-console
What is the issue?
Tokio console has nice prettily formatted times when UTF-8 support is turned on.
The times use only a small number of decimal places and are colour coded depending on the multiplier (seconds, milliseconds, etc.).
However, in the Task detail screen in the Waker panel, there is a time for "last woken" which does not have this formatting. It is not color-coded and it generally displays far too many decimal places.
How can the bug be reproduced?
Enter the task detail screen for a task that has been woken at least once. Look at the Waker panel, specifically the "last woken" value.
See screenshot for details and a comparison of the pretty vs. non-pretty times:
Logs, error output, etc
No response
Versions
tokio-console: 0.1.10 (and also the
main
branch at the time of writing).Possible solution
Change the formatting of the value for "last woken":
console/tokio-console/src/view/task.rs
Line 208 in 28a27fc
See the value for the "total time" field in the Task panel for an example of how to format the time prettily:
console/tokio-console/src/view/task.rs
Line 183 in 28a27fc
The text was updated successfully, but these errors were encountered: