]> git.proxmox.com Git - pve-manager.git/commit - www/manager6/Utils.js
fix #143: add disk/mem percent sort
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 15 Apr 2016 13:26:28 +0000 (15:26 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 20 Apr 2016 07:36:23 +0000 (09:36 +0200)
commit728f1b97e60b2ed7a45c06508a7b86f96bced6e3
tree95c5942a1ab24ed436154bf20761ed3f067f063b
parentf055f202e12b368f53958e61177c6c3de9879236
fix #143: add disk/mem percent sort

previously, we had a disk/memory usage column in the resource grid,
whose raw data were the bytes used, but we added a renderer
to display it as percentage

with this, the columns sorted by bytes and not by percentage,
which made the column rather confusing

with this patch, we add a real percentage column (where the
data is a float from 0 to 1) so it sorts correctly

also make the old columns show the used size in B/KiB/etc.
by default we still only show the percentage column

since the disk usage part was always zero with qemu guests,
leave it empty there

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
debian/changelog.Debian
www/manager6/Utils.js
www/manager6/data/ResourceStore.js
www/manager6/form/NodeSelector.js