Suffix perf data with "-rate" to signify a rate calculation

This commit is contained in:
Ton Voon 2010-06-22 14:49:09 +01:00
parent 0a8eb166be
commit 5551252e03

View file

@ -489,6 +489,8 @@ 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;