Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

remove three other roundings in cpu calculation #2807

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nwangtw
Copy link
Contributor

@nwangtw nwangtw commented Mar 23, 2018

No description provided.

@nwangtw nwangtw requested a review from avflor March 23, 2018 21:42
@nwangtw
Copy link
Contributor Author

nwangtw commented Mar 23, 2018

unit tests to update

@nlu90
Copy link
Member

nlu90 commented May 18, 2018

What's the background of removing this Math.rounding()?

@nwangtw
Copy link
Contributor Author

nwangtw commented May 18, 2018

It is more about "why there was a Math.rounding()".

The rounding logic doesn't seem necessary if we assume cpu # can be less than fractional. Also the logic have bugs that in some cases it can be floored to 0.

However when I was working on this PR, I found out that some parking algorithms rely on the rounding so this is not a quick fix. This PR needs to be revisited when I get more time.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants