From 016a76b78fd6232a06b9f4585b254d3fdfb80dc1 Mon Sep 17 00:00:00 2001 From: M M Date: Mon, 12 Aug 2024 15:07:03 -0700 Subject: [PATCH] Fix spelling. --- Server/db/mongo/modules/monitorModule.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Server/db/mongo/modules/monitorModule.js b/Server/db/mongo/modules/monitorModule.js index 3885132f2..713cb4ecc 100644 --- a/Server/db/mongo/modules/monitorModule.js +++ b/Server/db/mongo/modules/monitorModule.js @@ -27,7 +27,7 @@ const getAllMonitors = async (req, res) => { * @param {Array} checks Array of check objects. * @returns {number} Uptime duration in ms. */ -const caluclteUptimeDuration = (checks) => { +const calculateUptimeDuration = (checks) => { if (!checks || checks.length === 0) { return 0; } @@ -222,7 +222,7 @@ const getMonitorStatsById = async (req) => { dateRangeChecks = NormalizeData(dateRangeChecks, 1, 100); } - const uptimeDuration = caluclteUptimeDuration(checksAll); + const uptimeDuration = calculateUptimeDuration(checksAll); const lastChecked = getLastChecked(checksAll); const latestResponseTime = getLatestResponseTime(checksAll); const avgResponseTime24hours = getAverageResponseTime24Hours(checks24Hours);