Skip to content
Snippets Groups Projects
Commit 0ebc9730 authored by Matei Zaharia's avatar Matei Zaharia
Browse files

Merge pull request #375 from mateiz/option-fix

Fix bug added when we changed AppDescription.maxCores to an Option

The Scala compiler warned about this -- we were comparing an Option against an integer now.
parents dd03cea0 c43eb006
No related branches found
No related tags found
No related merge requests found
......@@ -67,11 +67,11 @@ private[spark] class ApplicationPage(parent: MasterWebUI) {
<li><strong>User:</strong> {app.desc.user}</li>
<li><strong>Cores:</strong>
{
if (app.desc.maxCores == Integer.MAX_VALUE) {
if (app.desc.maxCores == None) {
"Unlimited (%s granted)".format(app.coresGranted)
} else {
"%s (%s granted, %s left)".format(
app.desc.maxCores, app.coresGranted, app.coresLeft)
app.desc.maxCores.get, app.coresGranted, app.coresLeft)
}
}
</li>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment