diff options
| -rw-r--r-- | inc/field_stat2.h | 2 | ||||
| -rw-r--r-- | src/MESA_field_stat.cpp | 4 | ||||
| -rw-r--r-- | test/fs2_test.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/inc/field_stat2.h b/inc/field_stat2.h index 4af7b51..97e791e 100644 --- a/inc/field_stat2.h +++ b/inc/field_stat2.h @@ -29,7 +29,7 @@ enum field_op enum stats_output_format { FS_OUTPUT_STATSD=1, - FS_OUTPUT_INFLUX=2 + FS_OUTPUT_INFLUX_LINE=2 }; typedef void* screen_stat_handle_t; diff --git a/src/MESA_field_stat.cpp b/src/MESA_field_stat.cpp index aa8e527..8446706 100644 --- a/src/MESA_field_stat.cpp +++ b/src/MESA_field_stat.cpp @@ -508,7 +508,7 @@ int FS_set_para(screen_stat_handle_t handle, enum FS_option type,const void* va _handle->server_port=*((unsigned short *)value); break; case STATS_FORMAT: - if(size!=4||(int_val!=FS_OUTPUT_STATSD&&int_val!=FS_OUTPUT_INFLUX)) + if(size!=4||(int_val!=FS_OUTPUT_STATSD&&int_val!=FS_OUTPUT_INFLUX_LINE)) { return -1; } @@ -1446,7 +1446,7 @@ void FS_passive_output(screen_stat_handle_t handle) { StatsD_output(_handle); } - if(_handle->statsd_switch == FS_OUTPUT_INFLUX) + if(_handle->statsd_switch == FS_OUTPUT_INFLUX_LINE) { influx_output(_handle); } diff --git a/test/fs2_test.cpp b/test/fs2_test.cpp index 3fb7732..eee0905 100644 --- a/test/fs2_test.cpp +++ b/test/fs2_test.cpp @@ -40,7 +40,7 @@ int main(int argc,char* argv[]) value=8100; FS_set_para(handle, STATS_SERVER_PORT, &value, sizeof(value)); - //value=FS_OUTPUT_INFLUX; + //value=FS_OUTPUT_INFLUX_LINE; value=FS_OUTPUT_STATSD; FS_set_para(handle, STATS_FORMAT, &value, sizeof(value)); |
