ui: use byte unit and power-of-two base for memory rrd graphs

To better match the gauge in the current status infobox in the same
summary panel, which is already using a format where KiB is 1024

the latter needs a (not yet bumped) widget toolkit update to 2.5-2 or
newer, just setting now to avoid forgetting it.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-04-15 19:31:00 +02:00
parent 52b31ee327
commit e67d454a18
2 changed files with 4 additions and 0 deletions

View File

@ -148,6 +148,8 @@ Ext.define('PVE.node.Summary', {
title: gettext('Memory usage'),
fields: ['memtotal', 'memused'],
fieldTitles: [gettext('Total'), gettext('RAM usage')],
unit: 'bytes',
powerOfTwo: true,
store: rrdstore,
},
{

View File

@ -82,6 +82,8 @@ Ext.define('PVE.qemu.Summary', {
pveSelNode: me.pveSelNode,
fields: ['maxmem', 'mem'],
fieldTitles: [gettext('Total'), gettext('RAM usage')],
unit: 'bytes',
powerOfTwo: true,
store: rrdstore,
},
{