Add file timeseries chart

This commit is contained in:
2023-05-25 23:07:17 +02:00
parent b29a1b2a97
commit 976a37f299
6 changed files with 204 additions and 33 deletions

View File

@@ -39,7 +39,7 @@ let chart_timespans = [
]
let update_chart = (timespan, interval) => {
// If the timespan is 0 we calculate the maximum timespan based on the age
// If the timespan is 0 we calculate the maximum timespan based on the age
// of the file
if (timespan === 0) {
let minutes_since_upload = (new Date().getTime() - Date.parse(file.date_upload)) / 1000 / 60