diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c
index f8cae9b6297606136fe2ccf00d182eb6339c3977..e6707a0851567ceb5df167546574ddd385aa065e 100644 (file)
--- a/plugins/check_snmp.c
+++ b/plugins/check_snmp.c
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;