Commit 5bea2d26 authored by Dietmar Maurer's avatar Dietmar Maurer

format_size: display small values in bytes

parent 97ab4674
......@@ -421,6 +421,10 @@ Ext.define('PVE.Utils', { statics: {
format_size: function(size) {
if (size < 1024) {
return size;
}
var kb = size / 1024;
if (kb < 1024) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment