From 63c268aec3be5fd2cb01d13963cc925ccd707d36 Mon Sep 17 00:00:00 2001 From: Moe Date: Sun, 28 Nov 2021 09:25:01 -0800 Subject: [PATCH] cron syntax fix for file size setting after old video delete+ --- cron.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cron.js b/cron.js index 59f6cc22..bc738df5 100644 --- a/cron.js +++ b/cron.js @@ -207,7 +207,7 @@ const deleteVideosByDays = async (v,days,addedQueries) => { const filename = formattedTime(row.time) + '.' + row.ext try{ await fs.promises.unlink(dir + filename) - clearSize += row.size + clearSize += row.size / 1048576 sendToWebSocket({ f: 'video_delete', filename: filename + '.' + row.ext,