From 77f03c91b3074b5abd3e602002b7fc7ce28ea612 Mon Sep 17 00:00:00 2001 From: Dan Thomson Date: Thu, 6 Sep 2012 19:00:11 -0700 Subject: [PATCH] snmp plugin: Fix error message printed by the "Shift" option. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit I noticed a small error in snmp.c in collectd-5.1.0 (might be elsewhere). The warning message in csnmp_config_add_data_shift says "Scale config option" instead of "Shift" config option: […] Signed-off-by: Florian Forster --- src/snmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/snmp.c b/src/snmp.c index 5f7d3e9c..2b0b463f 100644 --- a/src/snmp.c +++ b/src/snmp.c @@ -302,7 +302,7 @@ static int csnmp_config_add_data_shift (data_definition_t *dd, oconfig_item_t *c if ((ci->values_num != 1) || (ci->values[0].type != OCONFIG_TYPE_NUMBER)) { - WARNING ("snmp plugin: The `Scale' config option needs exactly one number argument."); + WARNING ("snmp plugin: The `Shift' config option needs exactly one number argument."); return (-1); } -- 2.30.2