提交 1ee82f88 编写于 作者: S starlord

fix a typo


Former-commit-id: 8bbbf2d38c2273c646c9b6991536d26d2bd0252b
上级 252e785d
......@@ -22,7 +22,7 @@ namespace {
static constexpr int64_t NQ = 10;
static constexpr int64_t TOP_K = 10;
static constexpr int64_t SEARCH_TARGET = 5000; //change this value, result is different
static constexpr int64_t ADD_VECTOR_LOOP = 10;
static constexpr int64_t ADD_VECTOR_LOOP = 1;
static constexpr int64_t SECONDS_EACH_HOUR = 3600;
#define BLOCK_SPLITER std::cout << "===========================================" << std::endl;
......
......@@ -687,7 +687,7 @@ ServerError SearchVectorTask2::ConstructResult(engine::QueryResults& results) {
engine::IDNumber* ids_ptr = (engine::IDNumber*)str_ids.data();
double* distance_ptr = (double*)str_distances.data();
for(size_t k = 0; k < results.size(); k++) {
for(size_t k = 0; k < result.size(); k++) {
auto& pair = result[k];
ids_ptr[k] = pair.first;
distance_ptr[k] = pair.second;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册