ignore this, sent v1 again by mistake... On 3/22/18 10:44 AM, Thomas Lamprecht wrote: > Let user input MiB/s as values in the KiB/s range are not that handy > and would make even smaller backups need several hours to restore, > days for bigger ones. > > Try to give the user imformation about per-storage bandwidth limits > and how he can disable all of them. > > Signed-off-by: Thomas Lamprecht <[email protected]> > --- > www/manager6/window/Restore.js | 13 ++++++++++++- > 1 file changed, 12 insertions(+), 1 deletion(-) > > diff --git a/www/manager6/window/Restore.js b/www/manager6/window/Restore.js > index 14969f09..477c52db 100644 > --- a/www/manager6/window/Restore.js > +++ b/www/manager6/window/Restore.js > @@ -50,7 +50,14 @@ Ext.define('PVE.window.Restore', { > fieldLabel: gettext('Source') > }, > storagesel, > - IDfield > + IDfield, > + { > + xtype: 'proxmoxintegerfield', > + name: 'bwlimit', > + fieldLabel: gettext('Bandwidth Limit (KiB/s)'), > + minValue: 0, > + emptyText: gettext('Storage Default Limit') > + } > ]; > > if (me.vmtype === 'lxc') { > @@ -107,6 +114,10 @@ Ext.define('PVE.window.Restore', { > force: me.vmid ? 1 : 0 > }; > > + if (values.bwlimit !== undefined) { > + params.bwlimit = values.bwlimit; > + } > + > var url; > var msg; > if (me.vmtype === 'lxc') { >
_______________________________________________ pve-devel mailing list [email protected] https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
