Skip to content

Commit c167aef

Browse files
committed
Fix partitioned seq int to cover enire range
I had a previous fix that unfortunately only *printed* the correct range, but did not generate it :(.
1 parent 4a2a7b1 commit c167aef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/basho_bench_keygen.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ new({partitioned_sequential_int, StartKey, NumKeys}, Id) ->
8080
DisableProgress =
8181
basho_bench_config:get(disable_sequential_int_progress_report, false),
8282
?DEBUG("ID ~p generating range ~p to ~p\n", [Id, MinValue, MaxValue]),
83-
fun() -> sequential_int_generator(Ref, Range, Id, DisableProgress) + MinValue end;
83+
fun() -> sequential_int_generator(Ref, MaxValue - MinValue, Id, DisableProgress) + MinValue end;
8484
new({uniform_int, MaxKey}, _Id) ->
8585
fun() -> random:uniform(MaxKey) end;
8686
new({uniform_int, StartKey, NumKeys}, _Id) ->

0 commit comments

Comments
 (0)