-
Notifications
You must be signed in to change notification settings - Fork 28.5k
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
[Minor] Fixes on top of #1679 #1736
Conversation
QA tests have started for PR 1736. This patch merges cleanly. |
val remainingMem = storageStatusList.map(_.memRemaining).sum | ||
(maxMem - remainingMem) / 1024 / 1024 | ||
val memUsed = storageStatusList.map(_.memUsed).sum | ||
memUsed / 1024 / 1024 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: / (1024 * 1024) instead ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do the double slash in other places as well. Changing those too would touch upon things I didn't touch in #1679, so I'd rather keep the changes in this PR at the minimum while keeping the code consistent with the other places in this file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bad code is bad code :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Btw, it is just a nit - so please dont let this block a commit !
QA results for PR 1736: |
Minor fixes on top of apache#1679. Author: Andrew Or <andrewor14@gmail.com> Closes apache#1736 from andrewor14/amend-#1679 and squashes the following commits: 3b46f5e [Andrew Or] Minor fixes
Minor fixes on top of #1679.