Skip to content

Commit

Permalink
Relax delta time of bwlimit when __APPLE__ is defined.
Browse files Browse the repository at this point in the history
  • Loading branch information
junjihashimoto committed Feb 13, 2024
1 parent 2c98460 commit 7ec4276
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/lib/test_op_dump_key.cc
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,11 @@ namespace test_op_dump_key
void run_server_test(test_op_dump_key& op, int item_num, int item_key_size, int bwlimit = 0, int sleep_precision = 1)
{
static const int64_t one_sec = 1000000L;
#if __APPLE__
static const int64_t epsilon = 1000000L;
#else
static const int64_t epsilon = 100000L;
#endif
struct timeval start_tv, end_tv;

gettimeofday(&start_tv, NULL);
Expand Down

0 comments on commit 7ec4276

Please sign in to comment.