-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
systemd-analyze: use Table #13062
systemd-analyze: use Table #13062
Conversation
@@ -1081,18 +1080,50 @@ static int analyze_blame(int argc, char *argv[], void *userdata) { | |||
if (n <= 0) | |||
return n; | |||
|
|||
typesafe_qsort(times, n, compare_unit_time); | |||
table = table_new("TIME", "UNIT"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should probably stick to lowercase table header fields, as the formatter uppercases them anyway, and this way the JSON output of the formatter is nicer as it uses the table header fields 1:1 for the json output.
also see:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's do this in a later patch. There's already code in src/network that uses uppercase, so we should fix them all in one swell swoop.
I noticed some minor issues with formatting when reviewing this PR, but they predate the PR. I'll submit fixes separately.
systemd#13062 (comment) > the formatter uppercases them anyway, and this way the JSON output of the > formatter is nicer as it uses the table header fields 1:1 for the json > output.
I have posted #13074 inspired by this btw, which should allows to make putting tables together quite a bit shorter. ptal |
systemd#13062 (comment) > the formatter uppercases them anyway, and this way the JSON output of the > formatter is nicer as it uses the table header fields 1:1 for the json > output.
systemd#13062 (comment) > the formatter uppercases them anyway, and this way the JSON output of the > formatter is nicer as it uses the table header fields 1:1 for the json > output.
No description provided.