summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchenzizhan <[email protected]>2024-01-05 15:45:52 +0800
committerchenzizhan <[email protected]>2024-01-05 15:45:52 +0800
commit2ae6ecdd529fa70842d11d370dcf6c5f20cf1c01 (patch)
treea826c06ecda856c6e5671530575c7672c68c405b
parentd263c3836235d934af3e5605967197f32a84a087 (diff)
try ci
-rw-r--r--test/test_easy_fs.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_easy_fs.cpp b/test/test_easy_fs.cpp
index 7724837..8d40783 100644
--- a/test/test_easy_fs.cpp
+++ b/test/test_easy_fs.cpp
@@ -239,11 +239,11 @@ TEST(test_easy_fieldstat, accuracy_in_multithread)
std::thread threads[N_THREADS];
for (int thread_id = 0; thread_id < N_THREADS; thread_id++) {
- threads[thread_id] = std::thread([fse]() {
+ threads[thread_id] = std::thread([thread_id]() {
for (size_t i = 0; i < 2000000ULL; i++) { // 1 million times
// fieldstat_easy_counter_incrby(fse, thread_id, counter_id, &TEST_TAG_INT, 1, 1);
if (i % 500000 == 0) {
- printf("i: %zu\n", i);
+ printf("thread_id: %d, i: %zu\n", thread_id, i);
}
}
});