From: Florian Forster Date: Wed, 18 Feb 2009 22:38:23 +0000 (+0100) Subject: java plugin: Have "DispatchValues" return a meaningful status. X-Git-Tag: collectd-4.7.0~114^2~45 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=30c2d6652c012c90ab15cccadcb8934d7acbeac7;p=collectd.git java plugin: Have "DispatchValues" return a meaningful status. I. e. the status of "plugin_dispatch_values". That's as meaningful as we're going to get. --- diff --git a/src/java.c b/src/java.c index 648555ae..2d4974f2 100644 --- a/src/java.c +++ b/src/java.c @@ -1117,11 +1117,11 @@ static jint JNICALL cjni_api_dispatch_values (JNIEnv *jvm_env, /* {{{ */ return (-1); } - plugin_dispatch_values (&vl); + status = plugin_dispatch_values (&vl); sfree (vl.values); - return (0); + return (status); } /* }}} jint cjni_api_dispatch_values */ static JNINativeMethod jni_api_functions[] =