Skip to content

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

Description

@H3rby7

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions