graphs: make interval configurable
This commit is contained in:
@@ -136,7 +136,7 @@ function fillGraph(element, contents, chartPropertyName, divisor, max, format, f
|
||||
async function refresh() {
|
||||
busy.value = true;
|
||||
|
||||
const [error,result] = await appsModel.graphs(app.id, period.value * 60);
|
||||
const [error,result] = await appsModel.graphs(app.id, { fromSecs: period.value * 60 * 60, intervalSecs: 300 });
|
||||
if (error) return console.error(error);
|
||||
|
||||
blockReadTotal.value = (result.blockReadTotal / ioDivisor / 1000).toFixed(2) + ' MB';
|
||||
|
||||
Reference in New Issue
Block a user