summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 089d33f)
raw | patch | inline | side by side (parent: 089d33f)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Tue, 27 May 2008 14:37:35 +0000 (16:37 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Tue, 27 May 2008 14:37:35 +0000 (16:37 +0200) |
src/network.c | patch | blob | history |
diff --git a/src/network.c b/src/network.c
index cf01b719b026254a303b92afeca044d9130f589b..6be7a09859cf0bd0b580c9ed540b00cc9fa3ed21 100644 (file)
--- a/src/network.c
+++ b/src/network.c
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);