Skip to content

Commit

Permalink
sanitize minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
moticless committed Apr 18, 2024
1 parent f1f715a commit 676188a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/ebuckets.c
Original file line number Diff line number Diff line change
Expand Up @@ -1864,10 +1864,6 @@ void distributeTest(int lowestTime,
struct timeval timeBefore, timeAfter, timeDryRun, timeCreation, timeDestroy;
ebuckets eb = ebCreate();

int totalItems = 0;
for (int i = 0; i < numRanges; i++)
totalItems += ItemsPerRange[i];

/* create items with random expiry */
uint64_t startRange = lowestTime;

Expand All @@ -1877,7 +1873,6 @@ void distributeTest(int lowestTime,
uint64_t endRange = EB_BUCKET_EXP_TIME(expireRanges[i]);
for (int j = 0; j < ItemsPerRange[i]; j++) {
uint64_t randomExpirey = (rand() % (endRange - startRange)) + startRange;
randomExpirey = randomExpirey;
expItemsHashValue = expItemsHashValue ^ (uint32_t) randomExpirey;
MyItem *item = zmalloc(sizeof(MyItem));
getMyItemExpireMeta(item)->next = listOfItems;
Expand Down

0 comments on commit 676188a

Please sign in to comment.