author | Sebastian Harl <sh@tokkee.org> | |
Tue, 9 Dec 2008 11:27:47 +0000 (12:27 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Tue, 9 Dec 2008 11:39:39 +0000 (12:39 +0100) | ||
commit | cd3a0c6f7928a34da21f670f627e8e8a21943546 | |
tree | fb769bbcf4afe77721445329b975f68de5d10b1f | tree | snapshot |
parent | a37452448f6f2ad114fcd7adaf25128ca31dd2c6 | commit | diff |
collectd-nagios: If DSs are specified, sort the values accordingly.
If a user specifies DSs on the command line, the order or the values might
matter (e.g. when using the upcoming "percentage" consolidation function). So,
in this case we now order the values according to the order of the specified
DSs.
This patch replaces the function ignore_ds() with filter_ds() which is called
once in do_check(). This removes the need to check for ignored values in all
consolidation function implementations.
If a user specifies DSs on the command line, the order or the values might
matter (e.g. when using the upcoming "percentage" consolidation function). So,
in this case we now order the values according to the order of the specified
DSs.
This patch replaces the function ignore_ds() with filter_ds() which is called
once in do_check(). This removes the need to check for ignored values in all
consolidation function implementations.
src/collectd-nagios.c | diff | blob | history |