]> git.proxmox.com Git - proxmox-backup.git/blobdiff - www/dashboard/DataStoreStatistics.js
ui: some more eslint auto-fixes
[proxmox-backup.git] / www / dashboard / DataStoreStatistics.js
index c71f13c2a50e76427896ca163439c7bd76cee3e4..3aaa3c9b3f311e0b2dcf11febfa08fbf2d06b7bb 100644 (file)
@@ -13,7 +13,7 @@ Ext.define('pbs-datastore-statistics', {
                    }
                    return last;
                });
-           }
+           },
        },
        {
            name: 'usage',
@@ -25,13 +25,13 @@ Ext.define('pbs-datastore-statistics', {
                } else {
                    return -1;
                }
-           }
+           },
        },
     ],
 
     proxy: {
         type: 'proxmox',
-       url: "/api2/json/status/datastore-usage"
+       url: "/api2/json/status/datastore-usage",
     },
     idProperty: 'store',
 });
@@ -57,7 +57,7 @@ Ext.define('PBS.DatastoreStatistics', {
 
            let timespan = (estimate - now)/1000;
 
-           if (+estimate <= +now || isNaN(timespan)) {
+           if (Number(estimate) <= Number(now) || isNaN(timespan)) {
                return gettext('Never');
            }
 
@@ -131,8 +131,8 @@ Ext.define('PBS.DatastoreStatistics', {
                lineWidth: 0,
                chartRangeMin: 0,
                chartRangeMax: 1,
-               tipTpl: '{y:number("0.00")*100}%'
-           }
+               tipTpl: '{y:number("0.00")*100}%',
+           },
        },
     ],
 
@@ -150,4 +150,4 @@ Ext.define('PBS.DatastoreStatistics', {
        },
     },
 
-})
+});