Sort chips by name#10
Conversation
|
I think this belongs to the consumer of the data. Does
produce a stable output? |
8a41efc to
0b5fc76
Compare
That does produce stable output, but it's also (on my machine) 938 lines vs 89 lines from |
|
If you want less lines is only one line, even 'better' than sensors |
|
Personally, I just prefer when commands produce stable output by themselves without having to pipe around. |
|
Personally I prefer that the command provides all the information, and users pick what they want to display, and in what way. That's what -J option is for. |
a2ab4c5 to
3ba5942
Compare
|
Fair enough. This change feels rather small, so I didn't think it'd be a big deal. But it's your project, your call. |
|
The 'traditional' output is too quirky to fix. While this particular change could work (although I am not sure about the soundness of sorting the chips) there are other problems that cannot be fixed without changing the format. |
It's nice to have the output of
sensorsbe stable across reboots, and sorting by name seems pretty natural.I'm not sure if this is the right place since it makes it part of libsensors, but it also doesn't look like it hurts anything.