From: Florian Forster Date: Tue, 27 May 2008 14:37:35 +0000 (+0200) Subject: network plugin: Documented (in the source) that the network plugin cannot flush indiv... X-Git-Tag: collectd-4.5.0~142 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=28a77bdf8955889d3a57cbb8e904ba138aef41aa;p=collectd.git network plugin: Documented (in the source) that the network plugin cannot flush individual values. --- diff --git a/src/network.c b/src/network.c index cf01b719..6be7a098 100644 --- a/src/network.c +++ b/src/network.c @@ -1757,8 +1757,14 @@ static int network_init (void) return (0); } /* int network_init */ -/* TODO: Implement flushing of single items. */ -static int network_flush (int timeout, const char *itentifier) +/* + * The flush option of the network plugin cannot flush individual identifiers. + * All the values are added to a buffer and sent when the buffer is full, the + * requested value may or may not be in there, it's not worth finding out. We + * just send the buffer if `flush' is called - if the requested value was in + * there, good. If not, well, then there is nothing to flush.. -octo + */ +static int network_flush (int timeout, const char *identifier) { pthread_mutex_lock (&send_buffer_lock);