summaryrefslogtreecommitdiffstats
path: root/src/element.c
AgeCommit message (Collapse)Author
2016-08-02Fix item selection after element subgroups have been removedThomas Graf
If the element currently selected is removed due to inactivity, the selection is fixed up to the previous element in the list. This step must be done after the entire element subgroup has been removed. Signed-off-by: Thomas Graf <tgraf@suug.ch>
2016-08-02Derive initial interface selection based on policyThomas Graf
So far, any output module with a selection capability defaulted to the first interface in the list as first pick. This uses the policy configuration instead and thus allows to select which interface to display first: Examples: bmon -p 'em1,*' bmon -p 'eth*,lo,*' The first rule that finds a matching interface is used and will trigger initial selection. Note that this is *ONLY* evaluated after the first read of the statistics so if a more preferred interface appears later, the selection will not be changed. Signed-off-by: Thomas Graf <tgraf@suug.ch>
2015-12-16bmon: Mark attr_def_free() and __lookup_element() staticThomas Graf
Fixes sparse warnings: attr.c:114:6: warning: symbol 'attr_def_free' was not declared. Should it be static? element.c:116:16: warning: symbol '__lookup_element' was not declared. Should it be static? Signed-off-by: Thomas Graf <tgraf@suug.ch>
2014-08-24element: Remove unneeded condition, element is always member of groupThomas Graf
Fixes: CID 49003 Signed-off-by: Thomas Graf <tgraf@suug.ch>
2013-07-05Initial importThomas Graf