]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4776 Value of "Removed technical debt" should not be rounded
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Fri, 3 Jan 2014 08:58:11 +0000 (09:58 +0100)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Fri, 3 Jan 2014 08:58:11 +0000 (09:58 +0100)
plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/issues.html.erb

index 0acf5ea5c295406fc26b711532170fd4dd8f80a7..a1f6f154b07bb30832e79a55e90adc7f43eb9fe9 100644 (file)
@@ -57,7 +57,7 @@
                if @dashboard_configuration.selected_period?
                  technical_debt_variation = variation_value(technical_debt)
                  new_technical_debt_variation = variation_value(new_technical_debt)
-                 estimated_cleared_technical_debt = (new_technical_debt_variation - technical_debt_variation).to_i if technical_debt_variation && new_technical_debt_variation
+                 estimated_cleared_technical_debt = (new_technical_debt_variation - technical_debt_variation).to_f if technical_debt_variation && new_technical_debt_variation
             %>
               <% if new_technical_debt_variation && new_technical_debt_variation > 0 %>
                 <br/>
@@ -71,7 +71,7 @@
                 <br/>
                 <span style="font-weight: bold">
                   <%= message('widget.rules.removed') -%>&nbsp;
-                  <span class="varb"><%= number_with_precision(estimated_cleared_technical_debt, :precision => 0) -%></span>
+                  <span class="varb"><%= number_with_precision(estimated_cleared_technical_debt, :precision => 1) -%></span>
                 </span>
               <% end %>
             <% end %>