Skip to content

Commit eba2f15

Browse files
committed
Merge pull request #88 from basho/eas-partitioned-seq-full-range
Fix partitioned seq int to cover entire range
2 parents 34065d9 + c167aef commit eba2f15

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)