Skip to content

Commit

Permalink
Fix calculation of available job capacity returned in HealthIndicator
Browse files Browse the repository at this point in the history
  • Loading branch information
mprimi committed May 11, 2017
1 parent 3f93a8c commit 06d6792
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ public Health health() {
.withDetail(NUMBER_RUNNING_JOBS_KEY, this.jobMetricsService.getNumActiveJobs())
.withDetail(USED_MEMORY_KEY, usedMemory)
.withDetail(AVAILABLE_MEMORY, availableMemory)
.withDetail(AVAILABLE_DEFAULT_JOB_CAPACITY, availableMemory % defaultJobMemory)
.withDetail(AVAILABLE_MAX_JOB_CAPACITY, availableMemory % maxJobMemory)
.withDetail(AVAILABLE_DEFAULT_JOB_CAPACITY, availableMemory / defaultJobMemory)
.withDetail(AVAILABLE_MAX_JOB_CAPACITY, availableMemory / maxJobMemory)
.build();
}
}

0 comments on commit 06d6792

Please sign in to comment.