Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix default interleave value #2115

Merged
merged 1 commit into from
Dec 3, 2018

Conversation

psychocrypt
Copy link
Collaborator

@psychocrypt psychocrypt commented Dec 2, 2018

The default value for interleave was wrongly set to 50.

Remove the value and take the default from the default constructor instead of side channeling it from the json parser.

printer::inst()->print_msg(L0, "ERROR: interleave must be a number");
return false;
}
else if((int)interleave->GetInt64() < 0 || (int)interleave->GetInt64() > 100)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It you want to have a plain int here you can simply just use GetInt()

The default value for interleave was wrongly set to 50.

Remove the value and take the devault from the default constructor instead of side channeling it from the json parser.
@fireice-uk fireice-uk merged commit 6765ef4 into fireice-uk:dev Dec 3, 2018
@psychocrypt psychocrypt mentioned this pull request Dec 3, 2018
gnagel pushed a commit to gnagel/xmr-stak that referenced this pull request Mar 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants