Merge pull request #609 from bluewave-labs/fix/spelling-error
Fix spelling.
This commit is contained in:
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;
|
||||||
}
|
}
|
||||||
@@ -233,7 +233,7 @@ const getMonitorStatsById = async (req) => {
|
|||||||
if (normalize !== undefined) {
|
if (normalize !== undefined) {
|
||||||
dateRangeChecks = NormalizeData(dateRangeChecks, 1, 100);
|
dateRangeChecks = NormalizeData(dateRangeChecks, 1, 100);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add common stats
|
// Add common stats
|
||||||
const incidents = getIncidents(dateRangeChecks);
|
const incidents = getIncidents(dateRangeChecks);
|
||||||
monitorStats.uptimeDuration = caluclteUptimeDuration(checksAll);
|
monitorStats.uptimeDuration = caluclteUptimeDuration(checksAll);
|
||||||
|
|||||||
Reference in new issue
Block a user