mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-05-28 04:35:40 -04:00
Suffix perf data with "-rate" to signify a rate calculation
This commit is contained in:
parent
0a8eb166be
commit
5551252e03
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue