trace-generator icon indicating copy to clipboard operation
trace-generator copied to clipboard

job factor when created with dl > 1 is off by +1

Open H3rby7 opened this issue 1 year ago • 0 comments

When dl > 1

This line -> https://github.com/All-less/trace-generator/blob/master/spar/cli.py#L83

together with range() will already output the desired count of tasks. However the tool will also always add the original task. So the resulting task multiplicator should be dl, but in fact is dl+1.

Little snippet to inspect the behavior:

# Run with load-factor 1 (normal)
spar /tmp --load-factor 1
wc -l tmp/batch_instace.csv
# results in 3056536 lines

# Run with a load-factor just a little bit bigger than 1
spar /tmp --load-factor 1.00001
wc -l tmp/batch_instace.csv
# results in 16205872 lines (factor > 5)

H3rby7 avatar Dec 03 '24 14:12 H3rby7