From 5f0d11e10c9a9df1f721a0c9c5d2fc175409cb8e Mon Sep 17 00:00:00 2001 From: Pascal Borreli Date: Fri, 5 Jul 2013 00:10:23 +0100 Subject: [PATCH] Fixed typos --- CHANGELOG.md | 2 +- app/api/routes/check.js | 2 +- app/dashboard/public/javascripts/dateNavigation.js | 6 +++--- fixtures/populate.js | 4 ++-- lib/monitor.js | 6 +++--- lib/pollers/http/baseHttpPoller.js | 2 +- lib/qosAggregator.js | 8 ++++---- models/check.js | 2 +- models/tagMonthlyStat.js | 2 +- plugins/console/index.js | 2 +- plugins/email/index.js | 2 +- 11 files changed, 19 insertions(+), 19 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0149f518e..8a742a5ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -72,7 +72,7 @@ To be released * This is the last release compatible with Node 0.6. * New events appear as such when watching event list -* Added favicon. The favison turns red when at least one check is down. +* Added favicon. The favicon turns red when at least one check is down. 2012-08-05, v1.3 ---------------- diff --git a/app/api/routes/check.js b/app/api/routes/check.js index 945ea61f4..015cac4c1 100644 --- a/app/api/routes/check.js +++ b/app/api/routes/check.js @@ -62,7 +62,7 @@ module.exports = function(app) { timestamp: new Date(), check: req.check, tags: req.check.tags, - message: req.check.isPaused ? 'paused' : 'restarted', + message: req.check.isPaused ? 'paused' : 'restarted' }).save(); res.redirect(app.route + '/checks/' + req.params.id); }); diff --git a/app/dashboard/public/javascripts/dateNavigation.js b/app/dashboard/public/javascripts/dateNavigation.js index 9bb6ffa10..878842070 100644 --- a/app/dashboard/public/javascripts/dateNavigation.js +++ b/app/dashboard/public/javascripts/dateNavigation.js @@ -16,7 +16,7 @@ DateNavigation.prototype.init = function() { interval.update(data.type, parseInt(data.date)); }); - // redraw date range when time passes to enable new intrerval buttons + // redraw date range when time passes to enable new interval buttons setInterval(this.redrawPeriods.bind(this), 5 * 60 * 1000); // redraw uptime bar when the data arrives @@ -152,13 +152,13 @@ DateNavigation.prototype.redrawZoom = function() { if (subType !== false && !this.interval.isMaxZoom()) { zoom += ''; } else { - zoom += '' + zoom += '' } var superType = this.interval.superType(this.interval.type); if (superType !== false) { zoom += ''; } else { - zoom += '' + zoom += '' } $('#dateNavigation .zoom').html(zoom); } diff --git a/fixtures/populate.js b/fixtures/populate.js index dbbd9eafe..3cefe623e 100644 --- a/fixtures/populate.js +++ b/fixtures/populate.js @@ -10,7 +10,7 @@ var removeChecks = function(callback) { console.log('Removing Checks'); async.series([ function(cb) { CheckEvent.collection.remove(cb); }, - function(cb) { Check.collection.remove(cb); }, + function(cb) { Check.collection.remove(cb); } ], callback); }; @@ -20,7 +20,7 @@ var createFixtureChecks = function(callback) { function(cb) { createDummyCheck(99.85, 'Good Quality', ['good', 'all'], cb); }, function(cb) { createDummyCheck(99, 'Neun und neunzig Luftballons', ['average', 'all'], cb); }, function(cb) { createDummyCheck(80, 'My Unstable Site', ['average', 'all'], cb); }, - function(cb) { createDummyCheck(70, 'The lousy site I built for Al', ['low', 'all'], cb); }, + function(cb) { createDummyCheck(70, 'The lousy site I built for Al', ['low', 'all'], cb); } ], callback); }; diff --git a/lib/monitor.js b/lib/monitor.js index 7e751a883..5bc61aa54 100644 --- a/lib/monitor.js +++ b/lib/monitor.js @@ -9,7 +9,7 @@ var PollerCollection = require('./pollers/pollerCollection'); /** * Monitor constructor * - * The monitor pings the checks regularily and saves the response status and time. + * The monitor pings the checks regularly and saves the response status and time. * The monitor doesn't interact with the model classes directly, but instead uses * the REST HTTP API. This way, the monitor can run on a separate process, so that the * ping measurements don't get distorted by a heavy usage of the GUI. @@ -116,8 +116,8 @@ Monitor.prototype.pollCheck = function(check, callback) { var details = {}; try { Poller = this.pollerCollection.getForType(check.type || 'http'); - } catch (unkownPollerError) { - return self.createPing(unkownPollerError, check, now, 0, details, callback); + } catch (unknownPollerError) { + return self.createPing(unknownPollerError, check, now, 0, details, callback); } var pollerCallback = function(err, time, res) { if (err) { diff --git a/lib/pollers/http/baseHttpPoller.js b/lib/pollers/http/baseHttpPoller.js index fae3d17ab..2c2a377ff 100644 --- a/lib/pollers/http/baseHttpPoller.js +++ b/lib/pollers/http/baseHttpPoller.js @@ -54,7 +54,7 @@ BaseHttpPoller.prototype.setUserAgent = function(userAgent) { BaseHttpPoller.prototype.onResponseCallback = function(res) { var statusCode = res.statusCode; if (statusCode == 301 || statusCode == 302 || statusCode == 303) { - return this.handleRedirectResponse(res); // abstract, see implementtions in http and https + return this.handleRedirectResponse(res); // abstract, see implementations in http and https } if (statusCode != 200) { return this.handleErrorResponse(res); diff --git a/lib/qosAggregator.js b/lib/qosAggregator.js index 45cc02fe8..9e4ee4afc 100644 --- a/lib/qosAggregator.js +++ b/lib/qosAggregator.js @@ -568,7 +568,7 @@ QosAggregator.prototype.updateYearlyQosStats = function(start, end, monthlyStatM * @api public */ QosAggregator.prototype.updateLastHourQos = function(callback) { - var now = new Date(Date.now() - 1000 * 60 * 6); // 6 minutes in the past, to accomodate script running every 5 minutes + var now = new Date(Date.now() - 1000 * 60 * 6); // 6 minutes in the past, to accommodate script running every 5 minutes this.updateHourlyQos(now, callback); }; @@ -581,7 +581,7 @@ QosAggregator.prototype.updateLastHourQos = function(callback) { * @api public */ QosAggregator.prototype.updateLastDayQos = function(callback) { - var now = new Date(Date.now() - 1000 * 60 * 66); // 1 hour and 6 minutes in the past, to accomodate script running every hour + var now = new Date(Date.now() - 1000 * 60 * 66); // 1 hour and 6 minutes in the past, to accommodate script running every hour this.updateDailyQos(now, callback); }; @@ -594,7 +594,7 @@ QosAggregator.prototype.updateLastDayQos = function(callback) { * @api public */ QosAggregator.prototype.updateLastMonthQos = function(callback) { - var now = new Date(Date.now() - 1000 * 60 * 66); // 1 hour and 6 minutes in the past, to accomodate script running every hour + var now = new Date(Date.now() - 1000 * 60 * 66); // 1 hour and 6 minutes in the past, to accommodate script running every hour this.updateMonthlyQos(now, callback); }; @@ -607,7 +607,7 @@ QosAggregator.prototype.updateLastMonthQos = function(callback) { * @api public */ QosAggregator.prototype.updateLastYearQos = function(callback) { - var now = new Date(Date.now() - 1000 * 60 * 66); // 1 hour and 6 minutes in the past, to accomodate script running every hour + var now = new Date(Date.now() - 1000 * 60 * 66); // 1 hour and 6 minutes in the past, to accommodate script running every hour this.updateYearlyQos(now, callback); }; diff --git a/models/check.js b/models/check.js index e72cc5fab..fca60671c 100644 --- a/models/check.js +++ b/models/check.js @@ -142,7 +142,7 @@ Check.methods.mustNotifyEvent = function(status) { return false; } if (this.errorCount === this.alertTreshold) { - // enough down pings to trigger notofication + // enough down pings to trigger notification return true; } // error count higher than treshold, that means the alert was already sent diff --git a/models/tagMonthlyStat.js b/models/tagMonthlyStat.js index 696d33427..21c7001df 100644 --- a/models/tagMonthlyStat.js +++ b/models/tagMonthlyStat.js @@ -5,7 +5,7 @@ var Schema = mongoose.Schema; var TagMonthlyStat = new Schema({ name : String, timestamp : Date, - end : Date, // end is stored becaus months have an uneven duration + end : Date, // end is stored because months have an uneven duration count : Number, availability : Number, responsiveness : Number, diff --git a/plugins/console/index.js b/plugins/console/index.js index fac092445..89002c001 100644 --- a/plugins/console/index.js +++ b/plugins/console/index.js @@ -43,7 +43,7 @@ var registerNewEventsLogger = function() { messageColor = 'green+bold'; break; default: - message += '(unnown event)'; + message += '(unknown event)'; messageColor = 'bold'; } diff --git a/plugins/email/index.js b/plugins/email/index.js index d9884552a..0f06c48e7 100644 --- a/plugins/email/index.js +++ b/plugins/email/index.js @@ -53,7 +53,7 @@ exports.init = function() { from: config.message.from, to: config.message.to, subject: lines.shift(), - text: lines.join('\n'), + text: lines.join('\n') }; mailer.sendMail(mailOptions, function(err2, response) { if (err2) return console.error(err2);