author | Sebastian Harl <sh@tokkee.org> | |
Tue, 25 Mar 2008 14:53:45 +0000 (15:53 +0100) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Wed, 26 Mar 2008 08:22:10 +0000 (09:22 +0100) | ||
commit | 056474c91e21ff051d2851f7a07e4f83b7e6d74f | |
tree | 606b085e072f4bb36b1e2502dc9ebbd32f21a8bc | tree | snapshot |
parent | adc7046fad284f828118b7190b267db0a4618431 | commit | diff |
utils_cmd_flush.c: Simplified / improved option parsing.
Instead of parsing all options before doing any work, each option is now
handled right after it has been parsed. This has the following benefits:
* No need to allocate and construct any data structures.
* The timeout option may be used multiple times now, only affecting any
plugins listed after this.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
Instead of parsing all options before doing any work, each option is now
handled right after it has been parsed. This has the following benefits:
* No need to allocate and construct any data structures.
* The timeout option may be used multiple times now, only affecting any
plugins listed after this.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/collectd-unixsock.pod | diff | blob | history | |
src/utils_cmd_flush.c | diff | blob | history |