graphs: make interval configurable

This commit is contained in:
Girish Ramakrishnan
2025-05-20 19:09:12 +02:00
parent 3428b95672
commit 892ff38a3f
8 changed files with 44 additions and 41 deletions
+1 -1
View File
@@ -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';