diff options
author | Stephane Gamard <stephane.gamard@sonarsource.com> | 2014-10-16 16:58:11 +0200 |
---|---|---|
committer | Stephane Gamard <stephane.gamard@sonarsource.com> | 2014-10-16 17:00:55 +0200 |
commit | 9742e2c0dc9805ac701956b4b803ed847f58506a (patch) | |
tree | b96a2b26a80da9921126ca028e66da91b72d28e8 /server/sonar-web/src/main | |
parent | 229555a2030f9ea672654adf5087611ff2e60654 (diff) | |
download | sonarqube-9742e2c0dc9805ac701956b4b803ed847f58506a.tar.gz sonarqube-9742e2c0dc9805ac701956b4b803ed847f58506a.zip |
SONAR-5564 - Fixed rails status compare
Diffstat (limited to 'server/sonar-web/src/main')
-rw-r--r-- | server/sonar-web/src/main/webapp/WEB-INF/app/models/server.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/models/server.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/models/server.rb index c179f82e6c6..b611f37aed8 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/models/server.rb +++ b/server/sonar-web/src/main/webapp/WEB-INF/app/models/server.rb @@ -111,7 +111,7 @@ class Server add_property(node_info, 'Field Cache Size') { number_to_human_size(node_health.getFieldCacheMemory()) } add_property(node_info, 'Filter Cache Size') { number_to_human_size(node_health.getFilterCacheMemory()) } node_health.getPerformanceStats().each do |performance| - message = performance.getStatus() == "ERROR" || performance.getStatus() == "WARN" ? "- #{performance.getStatus()}: #{performance.getMessage()}" : ""; + message = performance.getStatus().toString() == "ERROR" || performance.getStatus().toString() == "WARN" ? "- #{performance.getStatus()}: #{performance.getMessage()}" : ""; if performance.getName().include? "Eviction" add_property(node_info, performance.getName()) { "#{performance.getValue()} #{message} " } else |