Fix spelling.
This commit is contained in:
1 parent
d9654aa8b5
commit
016a76b78f
1 file changed
+2
-2
@@ -27,7 +27,7 @@ const getAllMonitors = async (req, res) => {
|
|||||||
* @param {Array} checks Array of check objects.
|
* @param {Array} checks Array of check objects.
|
||||||
* @returns {number} Uptime duration in ms.
|
* @returns {number} Uptime duration in ms.
|
||||||
*/
|
*/
|
||||||
const caluclteUptimeDuration = (checks) => {
|
const calculateUptimeDuration = (checks) => {
|
||||||
if (!checks || checks.length === 0) {
|
if (!checks || checks.length === 0) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -222,7 +222,7 @@ const getMonitorStatsById = async (req) => {
|
|||||||
dateRangeChecks = NormalizeData(dateRangeChecks, 1, 100);
|
dateRangeChecks = NormalizeData(dateRangeChecks, 1, 100);
|
||||||
}
|
}
|
||||||
|
|
||||||
const uptimeDuration = caluclteUptimeDuration(checksAll);
|
const uptimeDuration = calculateUptimeDuration(checksAll);
|
||||||
const lastChecked = getLastChecked(checksAll);
|
const lastChecked = getLastChecked(checksAll);
|
||||||
const latestResponseTime = getLatestResponseTime(checksAll);
|
const latestResponseTime = getLatestResponseTime(checksAll);
|
||||||
const avgResponseTime24hours = getAverageResponseTime24Hours(checks24Hours);
|
const avgResponseTime24hours = getAverageResponseTime24Hours(checks24Hours);
|
||||||
|
|||||||
Reference in new issue
Block a user