}
return last;
});
- }
+ },
},
{
name: 'usage',
} else {
return -1;
}
- }
+ },
},
],
proxy: {
type: 'proxmox',
- url: "/api2/json/status/datastore-usage"
+ url: "/api2/json/status/datastore-usage",
},
idProperty: 'store',
});
let timespan = (estimate - now)/1000;
- if (+estimate <= +now || isNaN(timespan)) {
+ if (Number(estimate) <= Number(now) || isNaN(timespan)) {
return gettext('Never');
}
lineWidth: 0,
chartRangeMin: 0,
chartRangeMax: 1,
- tipTpl: '{y:number("0.00")*100}%'
- }
+ tipTpl: '{y:number("0.00")*100}%',
+ },
},
],
},
},
-})
+});