From 46f3df641a6491e0ac0186fb51e9408e7b818533 Mon Sep 17 00:00:00 2001 From: Adrian Toth Date: Wed, 26 Jul 2017 11:24:17 +0200 Subject: [PATCH 1/2] constant TOP_TABLES_BY_WASTED_SPACE_COUNT has been removed from UiConstants --- app/helpers/ui_constants.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/helpers/ui_constants.rb b/app/helpers/ui_constants.rb index 756c53a9881..29f1714cba1 100644 --- a/app/helpers/ui_constants.rb +++ b/app/helpers/ui_constants.rb @@ -6,8 +6,6 @@ module UiConstants TIMELINES_FOLDER = File.join(Rails.root, "product/timelines") TOOLBARS_FOLDER = File.join(Rails.root, "product/toolbars") - TOP_TABLES_BY_WASTED_SPACE_COUNT = 5 - # PDF page sizes PDF_PAGE_SIZES = { "a0" => N_("A0 - 841mm x 1189mm"), From 2506bf72ab0be3107b218291e565ed5b526b685f Mon Sep 17 00:00:00 2001 From: Adrian Toth Date: Wed, 26 Jul 2017 11:25:15 +0200 Subject: [PATCH 2/2] constant TOP_TABLES_BY_WASTED_SPACE_COUNT has been replaced with value --- app/helpers/ops_helper/textual_summary.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/ops_helper/textual_summary.rb b/app/helpers/ops_helper/textual_summary.rb index 927c3f0fbad..4b46301d962 100644 --- a/app/helpers/ops_helper/textual_summary.rb +++ b/app/helpers/ops_helper/textual_summary.rb @@ -125,7 +125,7 @@ def textual_vmdb_tables_most_wasted_space :title => _("Tables with Most Wasted Space"), :headers => [_("Name"), _("Wasted")], :col_order => %w(name value), - :value => vmdb_table_top_rows(:wasted_bytes, TOP_TABLES_BY_WASTED_SPACE_COUNT) + :value => vmdb_table_top_rows(:wasted_bytes, 5) } end