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
shell: Plot zooming #2020
shell: Plot zooming #2020
Conversation
Depends on #2022 |
/* TODO: Talk to systemd directly. This is a bit too | ||
* cumbersome just for a single service so we cheat and use | ||
* cockpitd which has all the hairy code. | ||
*/ |
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.
Why? I'm just about to move all the /com/redhat/Cockpit/Services code to javascript. It would be nice to start doing things right.
Alternatively, if you want quick and dirty, just use systemctl.
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 can't get change notifications from systemctl.
But you are right, of course. The main issue is https://bugs.freedesktop.org/show_bug.cgi?id=69575, which makes it non-trivial to listen to Unit states. (Maybe this is fixed.)
I'll scope On/Off out of this PR.
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.
I'll use journalctl
to get change notifications.
Somehow the logger configuration is being installed outside of
|
Yes, strange. I can't reproduce this here. |
|
6958ac8
to
4ba0793
Compare
Fixed "make distcheck". |
130a88d
to
5a5531e
Compare
Rebased. |
There is noise in pkg/kubernetes, from "make update-lib". @stefwalter is that expected? |
That was fixed by #2022, sorry for not paying enough attention. |
a0c0d79
to
ca63124
Compare
Note that the formating changes affect all of Cockpit, such as the Storage pages, but I think that is a good thing. |
Depends on #2182 for some of the cosmetic fixes related to number formatting. |
Just as for format_bytes.
Fixed. |
Discussion on this in #2182 |
To be fair, this shouldn't depend on the normal byte formatting. The lines should be drawn at precicely those numbers, in which case, the trailing .0 should go away, as no rounding is necessary. I think this is more an inherent limitation of flot (not putting axis ticks) on proper units. Our fix for this shouldn't necessarily affect the rest of Cockpit. With D3, it builds axis intelligently, so it'll actually draw the line at 768 * 1024 * 1024, rather than 768 * 1024 * 1024 +- N. |
Makes sense. |
We can control where the ticks are placed, see |
No description provided.