Skip to content

Conversation

dboehm-avalabs
Copy link
Contributor

Followup to #2010. Take care of a couple issues that weren't solved before the previous one was merged.

}
return bytesNeeded
// adding p.tokensPerByte - 1 causes the division to always round up
return (tokens + p.tokensPerByte - 1) / p.tokensPerByte
Copy link

Choose a reason for hiding this comment

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

Personally I like the other way better because I think it's more readable

Copy link

Choose a reason for hiding this comment

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

up to you

@danlaine danlaine merged commit d80760d into dev Oct 2, 2023
@danlaine danlaine deleted the PathCleanup branch October 2, 2023 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants