aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main
diff options
context:
space:
mode:
authorStephane Gamard <stephane.gamard@sonarsource.com>2014-10-16 16:58:11 +0200
committerStephane Gamard <stephane.gamard@sonarsource.com>2014-10-16 17:00:55 +0200
commit9742e2c0dc9805ac701956b4b803ed847f58506a (patch)
treeb96a2b26a80da9921126ca028e66da91b72d28e8 /server/sonar-web/src/main
parent229555a2030f9ea672654adf5087611ff2e60654 (diff)
downloadsonarqube-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.rb2
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