Skip to content

Commit

Permalink
partitioned_sequential_int with start/numkeys was using the wrong range.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Meredith committed Oct 1, 2010
1 parent c46c526 commit 191dd34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/basho_bench_keygen.erl
@@ -1,4 +1,4 @@
%% -------------------------------------------------------------------
in%% -------------------------------------------------------------------
%%
%% basho_bench: Benchmarking Suite
%%
Expand Down Expand Up @@ -52,7 +52,7 @@ new({partitioned_sequential_int, StartKey, NumKeys}, Id) ->
MaxValue = StartKey + Range * Id,
Ref = make_ref(),
?DEBUG("ID ~p generating range ~p to ~p\n", [Id, MinValue, MaxValue]),
fun() -> sequential_int_generator(Ref,MaxValue) + MinValue end;
fun() -> sequential_int_generator(Ref,Range) + MinValue end;
new({partitioned_sequential_int_bin, MaxKey}, Id) ->
Gen = new({partitioned_sequential_int, MaxKey}, Id),
fun() -> <<(Gen()):32/native>> end;
Expand Down

0 comments on commit 191dd34

Please sign in to comment.