Skip to content

Commit

Permalink
BZ1317929 - fixed bug introduced by 6910
Browse files Browse the repository at this point in the history
  • Loading branch information
ZitaNemeckova committed Mar 16, 2016
1 parent be2118f commit 0507c8d
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions app/helpers/storage_helper/textual_summary.rb
Expand Up @@ -175,9 +175,9 @@ def textual_disk_files
label = _("VM Provisioned Disk Files")
num = @record.number_of(:disk_files)
value = num == 0 ? 0 :
_("%{number} (%{percentage}% of Used Space, ${files})") %
_("%{number} (%{percentage} of Used Space, %{files})") %
{:number => number_to_human_size(@record.v_total_disk_size, :precision => 2),
:percetage => @record.v_disk_percent_of_used,
:percentage => @record.v_disk_percent_of_used.to_s + "%",
:files => pluralize(@record.number_of(:disk_files), 'files')}

h = {:label => label, :image => "storage_disk_files", :value => value}
Expand All @@ -193,9 +193,9 @@ def textual_snapshot_files
label = _("VM Snapshot Files")
num = @record.number_of(:snapshot_files)
value = num == 0 ? 0 :
_("%{number} (#{percentage}% of Used Space, %{files})") %
_("%{number} (%{percentage} of Used Space, %{files})") %
{:number => number_to_human_size(@record.v_total_snapshot_size, :precision => 2),
:percentage => @record.v_snapshot_percent_of_used,
:percentage => @record.v_snapshot_percent_of_used.to_s + "%",
:files => pluralize(@record.number_of(:snapshot_files), 'files')}
h = {:label => label, :image => "storage_snapshot_files", :value => value}
if num > 0
Expand All @@ -210,9 +210,9 @@ def textual_vm_ram_files
label = _("VM Memory Files")
num = @record.number_of(:vm_ram_files)
value = num == 0 ? 0 :
_("%{number} (%{percentage}% of Used Space, %{files})") %
_("%{number} (%{percentage} of Used Space, %{files})") %
{:number => number_to_human_size(@record.v_total_memory_size, :precision => 2),
:percentage => @record.v_memory_percent_of_used,
:percentage => @record.v_memory_percent_of_used.to_s + "%",
:files => pluralize(@record.number_of(:vm_ram_files), 'files')}
h = {:label => label, :image => "storage_memory_files", :value => value}
if num > 0
Expand All @@ -226,9 +226,9 @@ def textual_vm_misc_files
label = _("Other VM Files")
num = @record.number_of(:vm_misc_files)
value = num == 0 ? 0 :
_("%{number} (%{percentage}% of Used Space, %{files})") %
_("%{number} (%{percentage} of Used Space, %{files})") %
{:number => number_to_human_size(@record.v_total_vm_misc_size, :precision => 2),
:percentage => @record.v_vm_misc_percent_of_used,
:percentage => @record.v_vm_misc_percent_of_used.to_s + "%",
:files => pluralize(@record.number_of(:vm_misc_files), 'files')}
h = {:label => label, :image => "storage_other_vm_files", :value => value}
if num > 0
Expand All @@ -242,9 +242,9 @@ def textual_debris_files
label = _("Non-VM Files")
num = @record.number_of(:debris_files)
value = num == 0 ? 0 :
_("%{number} (%{percentage}% of Used Space, %{files})") %
_("%{number} (%{percentage} of Used Space, %{files})") %
{:number => number_to_human_size(@record.v_total_debris_size, :precision => 2),
:percentage => @record.v_debris_percent_of_used,
:percentage => @record.v_debris_percent_of_used.to_s + "%",
:files => pluralize(@record.number_of(:debris_files), 'files')}
h = {:label => label, :image => "storage_non_vm_files", :value => value}
if num > 0
Expand Down

0 comments on commit 0507c8d

Please sign in to comment.