modify analytics

This commit is contained in:
Torben Haack
2024-11-05 07:57:06 +01:00
parent cddd8c1814
commit 4a9131a562
4 changed files with 7 additions and 10 deletions

View File

@@ -22,7 +22,7 @@ export function calculatePrinterIdleTime(
const now = new Date();
const startOfThisMonth = startOfMonth(now);
const endOfThisMonth = endOfMonth(now);
const totalMinutesInMonth = (endOfThisMonth.getTime() - startOfThisMonth.getTime()) / (1000 * 60);
const totalMinutesInMonth = 60 * 70 * 4; // 60min * 70h (35*2) * 4 Weeks
const usedTimePerPrinter: Record<string, number> = pJobs.reduce(
(acc, job) => {