Conversation
1571ee6 to
931f16e
Compare
|
Not tested, but does this list all local IP addresses, or does it select one? Like: Waht happens on a multihomed system with e.g. LAN+wireless+VPN? |
|
Only the the first (whatever the kernel decides to be first) non-loopback link-local IP address is displayed. Maybe in the future Meters can have runtime options, which can be set per enabled-meter (like display-mode). |
Expected behaviour: While fc00::4242:8:7:e:4 would be correct too, it's an ULA, and thus not globally routable. For the difference between |
a3894b0 to
6b5a5f4
Compare
|
👉 View analysis in DeepCode’s Dashboard | Configure the bot |
BenBE
left a comment
There was a problem hiding this comment.
General issue with IPv6 is if the interface has multiple temporary+dynamic addresses than you might end up showing deprecated addresses or addresses only intended for outgoing connections. E.g. right now my wifi interface shows 1 address scoped link, 6 scoped global, of which 5 are temporary dynamic (4 of which deprecated). The last one is dynamic mngtmpaddr noprefixroute … If only one is shown it should most likely be that one.
Settings.c
Outdated
| } else if (String_eq(option[0], "left_meter_choices")) { | ||
| Settings_readMeterChoices(this, option[1], 0); | ||
| didReadMeters = true; | ||
| } else if (String_eq(option[0], "right_meter_choices")) { | ||
| Settings_readMeterChoices(this, option[1], 1); | ||
| didReadMeters = true; |
There was a problem hiding this comment.
Does it cope with just reading Meter Choices, but no associated/non-matching meters?
Does it properly auto-upgrade from existing config?
There was a problem hiding this comment.
i hope; i tested several cases
626d34c to
5117731
Compare
07e5760 to
ec88ab7
Compare
2b13f33 to
8120b82
Compare
Use a meter attached data structure instead of static variables, to uncouple different meters for choice support.
Display the network usage based on the selected network interface. Currently only implemented on Linux and FreeBSD.
Show the input and maximum temperature of any available libsensors temperature sensor. Related: htop-dev#610
Show the input, minimum and maximum fan speed of any available libsensors fan sensor.
| } | ||
| } | ||
|
|
||
| out: |
| } | ||
| } | ||
|
|
||
| out: |
| unsigned int ifs = ifconf.ifc_len / sizeof(*ifr); | ||
| for (unsigned int i = 0; i < ifs; i++) { |
There was a problem hiding this comment.
| unsigned int ifs = ifconf.ifc_len / sizeof(*ifr); | |
| for (unsigned int i = 0; i < ifs; i++) { | |
| size_t ifs = ifconf.ifc_len / sizeof(*ifr); | |
| for (size_t i = 0; i < ifs; i++) { |
|
|
||
| struct in6_addr s6; | ||
| char ifName[16]; | ||
| unsigned int count = 0; |
There was a problem hiding this comment.
| unsigned int count = 0; | |
| size_t count = 0; |
|
Testing the Disk Usage meter the UX is not the best. Especially as it does not filter For the |
htop-dev#669) Signed-off-by: Sohaib Mohamed <sohaib.amhmd@gmail.com>
…v#669) Signed-off-by: Sohaib Mohamed <sohaib.amhmd@gmail.com>
…v#669) Signed-off-by: Sohaib Mohamed <sohaib.amhmd@gmail.com>
…v#669) Signed-off-by: Sohaib Mohamed <sohaib.amhmd@gmail.com>
…v#669) Signed-off-by: Sohaib Mohamed <sohaib.amhmd@gmail.com>
…v#669) Signed-off-by: Sohaib Mohamed <sohaib.amhmd@gmail.com>
Related: htop-dev#200 && htop-dev#669 Signed-off-by: Sohaib Mohamed <sohaib.amhmd@gmail.com>
Related: htop-dev#200 && htop-dev#669 Signed-off-by: Sohaib Mohamed <sohaib.amhmd@gmail.com>
Related: htop-dev#200 && htop-dev#669 Signed-off-by: Sohaib Mohamed <sohaib.amhmd@gmail.com>
Related: htop-dev#200 && htop-dev#669 Signed-off-by: Sohaib Mohamed <sohaib.amhmd@gmail.com>
|
Wondering if choices should have a preferred sorting order (either enforced by the "choice provider" or by the "meter framework". |
Related: htop-dev#200 && htop-dev#669 Signed-off-by: Sohaib Mohamed <sohaib.amhmd@gmail.com>
Related: htop-dev#200 && htop-dev#669 Signed-off-by: Sohaib Mohamed <sohaib.amhmd@gmail.com>
Related: htop-dev#200 && htop-dev#669 Signed-off-by: Sohaib Mohamed <sohaib.amhmd@gmail.com>
|
Do you have any plans on merging this? I am new to this code base, but can push minor changes/features. |
|
There are still 3 major issues with this PR, that need to be resolved, before it can be merged:
While item 1 can be resolved quite easily, it's mostly item 2 on the list, that still needs experimentation. If you happen to have some ideas that are intuitive, comfortable to use and easily discoverable we'd be glad to hear about them. The current solution in this PR horribly fails on the "comfortable to use" side of things … |
Add the possibility for meters to have selectable choices, so they can display more exact information the user is interested in.
As examples the following meters are added:
Data is only available on Linux for now.