ui: server status: use power of two base for memory and swap

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-05-17 10:16:46 +02:00
parent 62e5cf1e8c
commit 16e605583f
1 changed files with 4 additions and 0 deletions

View File

@ -216,6 +216,8 @@ Ext.define('PBS.ServerStatus', {
title: gettext('Memory usage'),
fields: ['memtotal', 'memused'],
fieldTitles: [gettext('Total'), gettext('RAM usage')],
unit: 'bytes',
powerOfTwo: true,
store: rrdstore,
},
{
@ -223,6 +225,8 @@ Ext.define('PBS.ServerStatus', {
title: gettext('Swap usage'),
fields: ['swaptotal', 'swapused'],
fieldTitles: [gettext('Total'), gettext('Swap usage')],
unit: 'bytes',
powerOfTwo: true,
store: rrdstore,
},
{