mirror of
https://github.com/collectd/collectd.git
synced 2026-02-09 04:09:15 +08:00
Merge branch 'collectd-5.6' into collectd-5.7
This commit is contained in:
@@ -501,8 +501,8 @@ the byte- and packet-counters of selected rules and submit them to collectd.
|
||||
Summary: Java plugin for collectd
|
||||
Group: System Environment/Daemons
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
BuildRequires: java-devel, jpackage-utils
|
||||
Requires: java, jpackage-utils
|
||||
BuildRequires: java-devel >= 1.6, jpackage-utils >= 1.6
|
||||
Requires: java >= 1.6, jpackage-utils >= 1.6
|
||||
%description java
|
||||
This plugin for collectd allows plugins to be written in Java and executed
|
||||
in an embedded JVM.
|
||||
|
||||
@@ -1230,9 +1230,9 @@ static int parse_part_encr_aes256(sockent_t *se, /* {{{ */
|
||||
part_size - buffer_offset,
|
||||
/* in = */ NULL, /* in len = */ 0);
|
||||
if (err != 0) {
|
||||
sfree(pea.username);
|
||||
ERROR("network plugin: gcry_cipher_decrypt returned: %s. Username: %s",
|
||||
gcry_strerror(err), pea.username);
|
||||
sfree(pea.username);
|
||||
return (-1);
|
||||
}
|
||||
|
||||
@@ -1254,8 +1254,6 @@ static int parse_part_encr_aes256(sockent_t *se, /* {{{ */
|
||||
parse_packet(se, buffer + buffer_offset, payload_len, flags | PP_ENCRYPTED,
|
||||
pea.username);
|
||||
|
||||
/* XXX: Free pea.username?!? */
|
||||
|
||||
/* Update return values */
|
||||
*ret_buffer = buffer + part_size;
|
||||
*ret_buffer_len = buffer_len - part_size;
|
||||
|
||||
@@ -850,9 +850,9 @@ static int ntpd_read(void) {
|
||||
}
|
||||
|
||||
/* kerninfo -> estimated error */
|
||||
offset_loop = scale_loop * ((gauge_t)ntohl(ik->offset));
|
||||
offset_loop = (gauge_t)((int32_t)ntohl(ik->offset) * scale_loop);
|
||||
freq_loop = ntpd_read_fp(ik->freq);
|
||||
offset_error = scale_error * ((gauge_t)ntohl(ik->esterror));
|
||||
offset_error = (gauge_t)((int32_t)ntohl(ik->esterror) * scale_error);
|
||||
|
||||
DEBUG("info_kernel:\n"
|
||||
" pll offset = %.8g\n"
|
||||
|
||||
@@ -2618,6 +2618,12 @@ static int perl_config_plugin(pTHX_ oconfig_item_t *ci) {
|
||||
char *plugin;
|
||||
HV *config;
|
||||
|
||||
if (NULL == perl_threads) {
|
||||
log_err("A `Plugin' block was encountered but no plugin was loaded yet. "
|
||||
"Put the appropriate `LoadPlugin' option in front of it.");
|
||||
return -1;
|
||||
}
|
||||
|
||||
dSP;
|
||||
|
||||
if ((1 != ci->values_num) || (OCONFIG_TYPE_STRING != ci->values[0].type)) {
|
||||
|
||||
Reference in New Issue
Block a user