Skip to content

Commit

Permalink
Merge pull request #1767 from europ/remove-ui-constants-10
Browse files Browse the repository at this point in the history
Same value was replaced with new constant
  • Loading branch information
mzazrivec authored Jul 28, 2017
2 parents 1bdb441 + b43e88d commit 00a3faf
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/helpers/ops_helper/textual_summary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ module OpsHelper::TextualSummary
# Groups
#

TOP_TABLES_BY_COUNT = 5

def textual_group_vmdb_connection_properties
TextualGroup.new(
_("Properties"),
Expand Down Expand Up @@ -107,7 +109,7 @@ def textual_vmdb_tables_most_rows
:title => _("Tables with the Most Rows"),
:headers => [_("Name"), _("Rows")],
:col_order => %w(name value),
:value => vmdb_table_top_rows(:rows, 5)
:value => vmdb_table_top_rows(:rows, TOP_TABLES_BY_COUNT)
}
end

Expand All @@ -116,7 +118,7 @@ def textual_vmdb_tables_largest_size
:title => _("Largest Tables"),
:headers => [_("Name"), _("Size")],
:col_order => %w(name value),
:value => vmdb_table_top_rows(:size, 5)
:value => vmdb_table_top_rows(:size, TOP_TABLES_BY_COUNT)
}
end

Expand All @@ -125,7 +127,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, 5)
:value => vmdb_table_top_rows(:wasted_bytes, TOP_TABLES_BY_COUNT)
}
end

Expand Down

0 comments on commit 00a3faf

Please sign in to comment.