]> git.proxmox.com Git - pve-manager.git/commitdiff
lxc rate limit: do not write value 0 (simply omit value)
authorDietmar Maurer <dietmar@proxmox.com>
Fri, 22 Apr 2016 08:13:31 +0000 (10:13 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 22 Apr 2016 08:13:31 +0000 (10:13 +0200)
www/manager6/Parser.js

index 820c05f134c23101eb78e9abe54fdc7f2d343ff9..18136b70815db3ac82b18fb63bd4090fb6572291 100644 (file)
@@ -269,7 +269,7 @@ Ext.define('PVE.Parser', { statics: {
                }
        });
 
-       if (data.rate) {
+       if (data.rate > 0) {
            tmparray.push('rate=' + data.rate);
        }
        return tmparray.join(',');