summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorfumingwei <[email protected]>2023-03-09 21:58:23 +0800
committerfumingwei <[email protected]>2023-03-09 23:06:49 +0800
commitb2daf45366e59ac3f7b44b3e465224b4c3c5a82e (patch)
tree0b9f95fc0d685d155080da51989f7146e4e5d8e1 /test
parentcd0ecc40a989ac8e123039b433469ffc1f1c6fd4 (diff)
feature:代码review后修改
Diffstat (limited to 'test')
-rw-r--r--test/fieldstat_test.cpp (renamed from test/fs2_test.cpp)3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/fs2_test.cpp b/test/fieldstat_test.cpp
index 3c16f29..88389c4 100644
--- a/test/fs2_test.cpp
+++ b/test/fieldstat_test.cpp
@@ -50,6 +50,7 @@ int main(int argc, char *argv[])
const char *field_list_0[] = {"c0", "c1", "c2"};
struct metric_id_list id_list;
+
fieldstat_global_enable_prometheus_endpoint(9010, "/metrics");
test_instance = fieldstat_instance_create("test");
@@ -66,7 +67,7 @@ int main(int argc, char *argv[])
printf("Set output_interval failed!\n");
}
- ret = fieldstat_backgroud_thead_disable(test_instance);
+ ret = fieldstat_background_thead_disable(test_instance);
if(ret == -1)
{
printf("Set backgroud thread disable failed!\n");