CIMI: added memory unit (KiB) and use consistent naming
between machine and machine_configuration
diff --git a/clients/cimi/views/machine_configurations/show.haml b/clients/cimi/views/machine_configurations/show.haml
index d5ac78a..94b696e 100644
--- a/clients/cimi/views/machine_configurations/show.haml
+++ b/clients/cimi/views/machine_configurations/show.haml
@@ -21,7 +21,7 @@
- row 'Name', @machine_configuration.name
- row 'Description', @machine_configuration.description
- row 'Created', @machine_configuration.created
- - row 'Num of CPUs', @machine_configuration.cpu
- - row 'Memory (RAM)', @machine_configuration.memory
+ - row 'CPU', @machine_configuration.cpu
+ - row 'Memory (RAM)', "#{@machine_configuration.memory} KiB"
- row 'Storage (disks)', @machine_configuration.disks.map { |d| [d.capacity, d.format].join(' ') }.join(',')
diff --git a/clients/cimi/views/machines/show.haml b/clients/cimi/views/machines/show.haml
index 7d36da0..a7ef075 100644
--- a/clients/cimi/views/machines/show.haml
+++ b/clients/cimi/views/machines/show.haml
@@ -38,7 +38,7 @@
-row 'Description',@machine.description
-row 'State',state_span_for(@machine.state)
-row 'CPU', boolean_span_for(@machine.cpu)
- -row 'RAM', @machine.memory
+ -row 'Memory (RAM)', "#{@machine.memory} KiB"
-row 'Meters', (@machine.meters.empty? ? "No meters" : ( @machine.meters.each{|meter| meters.id}))
-row 'Created', @machine.created
-row 'Disks', url("/cimi/machines/#{href_to_id @machine.id}/disks")