Skip to content

Commit

Permalink
ceph: add grid row summary for pool list
Browse files Browse the repository at this point in the history
So that we can see overall usage.
  • Loading branch information
maurerdietmar committed Jan 24, 2014
1 parent df4417b commit dd43568
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions www/manager/ceph/Pool.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ Ext.define('PVE.node.CephPoolList', {
selModel: sm,
stateful: false,
tbar: [ create_btn, remove_btn ],
features: [ { ftype: 'summary' } ],
columns: [
{
header: gettext('Name'),
Expand Down Expand Up @@ -175,15 +176,19 @@ Ext.define('PVE.node.CephPoolList', {
sortable: true,
align: 'right',
renderer: Ext.util.Format.numberRenderer('0.00'),
dataIndex: 'percent_used'
dataIndex: 'percent_used',
summaryType: 'sum',
summaryRenderer: Ext.util.Format.numberRenderer('0.00')
},
{
header: gettext('Total'),
width: 100,
sortable: true,
renderer: PVE.Utils.render_size,
align: 'right',
dataIndex: 'bytes_used'
dataIndex: 'bytes_used',
summaryType: 'sum',
summaryRenderer: PVE.Utils.render_size
}
]
}
Expand Down

0 comments on commit dd43568

Please sign in to comment.