From 34445190148ac113da9d29cbf8b62f4ce8606304 Mon Sep 17 00:00:00 2001 From: tonvoon Date: Wed, 30 Jun 2010 09:37:10 +0000 Subject: Removed suffix of "-rate" and let user decide label via --label --- plugins/check_snmp.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'plugins/check_snmp.c') diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c index f8cae9b6..e6707a08 100644 --- a/plugins/check_snmp.c +++ b/plugins/check_snmp.c @@ -493,8 +493,6 @@ main (int argc, char **argv) temp_string=labels[i]; else temp_string=oidname; - if(calculate_rate) - asprintf(&temp_string,"%s-rate",temp_string); strncat(perfstr, temp_string, sizeof(perfstr)-strlen(perfstr)-1); strncat(perfstr, "=", sizeof(perfstr)-strlen(perfstr)-1); len = sizeof(perfstr)-strlen(perfstr)-1; -- cgit v1.2.3-74-g34f1