Skip to content

Commit

Permalink
Added return value of unhealthy code path.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeroen Bloemscheer committed Jun 26, 2015
1 parent 3418b63 commit 294afaf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ protected Result check() throws Exception {
long free = unixMXBean.getMaxFileDescriptorCount() - unixMXBean.getOpenFileDescriptorCount();
double fivePercent = Math.max(2.0, ((double) unixMXBean.getMaxFileDescriptorCount()) * 0.01);
if (free < fivePercent) {
Result.unhealthy("There are insufficient free file handles. Connections free:" + free);
return Result.unhealthy("There are insufficient free file handles. Connections free:" + free);
}
}
return Result.healthy();
Expand Down

0 comments on commit 294afaf

Please sign in to comment.