]> git.proxmox.com Git - proxmox-widget-toolkit.git/commit
format/render size: allow one to specifiy if base 2 or 10 is desired
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 4 May 2021 08:33:28 +0000 (10:33 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 7 May 2021 15:56:04 +0000 (17:56 +0200)
commitb46ad78c2d482afcdfe187c2dce0d73527e7db31
tree41eb81f3c1aea751451e33262b7516a55e966631
parentce8289fc58d85dde8df69b1702108a329be52398
format/render size: allow one to specifiy if base 2 or 10 is desired

Storage capacity and usage seems to prefer the base ten (SI unit) use
(makes the capacity a bigger number) while memory (RAM) is normally
preferred to use base 2.

So allow both, mostly to allow consistent displaying of metrics.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/Utils.js