Code

snmp plugin: Fix error message printed by the "Shift" option.
authorDan Thomson <dan@astutehosting.com>
Fri, 7 Sep 2012 02:00:11 +0000 (19:00 -0700)
committerFlorian Forster <octo@collectd.org>
Fri, 7 Sep 2012 08:54:52 +0000 (10:54 +0200)
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 <octo@collectd.org>
src/snmp.c

index 5f7d3e9c2a548a704a3b931d385f2817f6c3c9b0..2b0b463fd63f778041ac7814b7a682e7d18e4de2 100644 (file)
@@ -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);
   }