diff --git a/src/controllers/PrinterController.ts b/src/controllers/PrinterController.ts index bca48e5..38d621b 100644 --- a/src/controllers/PrinterController.ts +++ b/src/controllers/PrinterController.ts @@ -51,7 +51,7 @@ class PrinterController { static async show(req: Request, res: Response) { const { serialNumber } = req.params - const { days = 60 } = req.query + const { days = 180 } = req.query const gte = new Date(Date.now() - 1000 * 60 * 60 * 24 * Number(days)) diff --git a/src/controllers/PrinterStatusController.ts b/src/controllers/PrinterStatusController.ts index 2ea81ec..83d0496 100644 --- a/src/controllers/PrinterStatusController.ts +++ b/src/controllers/PrinterStatusController.ts @@ -19,7 +19,7 @@ class PrinterStatusController { static async status(req: Request, res: Response) { const { printerId } = req.params - const { days = 60 } = req.query + const { days = 180 } = req.query const gte = new Date(Date.now() - 1000 * 60 * 60 * 24 * Number(days)) diff --git a/web/src/components/PrinterTonerChart.vue b/web/src/components/PrinterTonerChart.vue index a388ece..e3b85ab 100644 --- a/web/src/components/PrinterTonerChart.vue +++ b/web/src/components/PrinterTonerChart.vue @@ -39,7 +39,7 @@ const chartOptions = ref({ colors: ['#000000', '#00BCD4', '#E91E63', '#FDD835'], stroke: { - curve: 'stepline', + curve: 'smooth', width: 4 }, grid: {