Code

Merge branch 'fix-stringio-python2.7' of git://github.com/aelse/collectd
[collectd.git] / src / entropy.c
index 69ce3142bc7f4e412ded5f0483be4c793f3cb7d6..d56be6dc1df8f4645eb7c4f04a820ee978d87a8b 100644 (file)
@@ -38,13 +38,11 @@ static void entropy_submit (double entropy)
 
        vl.values = values;
        vl.values_len = 1;
-       vl.time = time (NULL);
        sstrncpy (vl.host, hostname_g, sizeof (vl.host));
        sstrncpy (vl.plugin, "entropy", sizeof (vl.plugin));
-       sstrncpy (vl.plugin_instance, "", sizeof (vl.plugin_instance));
-       sstrncpy (vl.type_instance, "", sizeof (vl.type_instance));
+       sstrncpy (vl.type, "entropy", sizeof (vl.type));
 
-       plugin_dispatch_values ("entropy", &vl);
+       plugin_dispatch_values (&vl);
 }
 
 static int entropy_read (void)