Permalink
Browse files

Fixed typos

  • Loading branch information...
1 parent 34083c3 commit 5f0d11e10c9a9df1f721a0c9c5d2fc175409cb8e @pborreli pborreli committed Jul 4, 2013
View
@@ -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
----------------
View
@@ -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);
});
@@ -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 += '<button class="btn btn-small" data-type="' + subType + '" data-date="' + this.interval.date + '"><li class="icon-zoom-in"></li></button>';
} else {
- zoom += '<button class="btn btn-small" disabled="disabled"><li class="icon-zoom-in"></li></button>'
+ zoom += '<button class="btn btn-small" disabled="disabled"><i class="icon-zoom-in"></i></button>'
}
var superType = this.interval.superType(this.interval.type);
if (superType !== false) {
zoom += '<button class="btn btn-small" data-type="' + superType + '" data-date="' + this.interval.date + '"><li class="icon-zoom-out"></li></button>';
} else {
- zoom += '<button class="btn btn-small" disabled="disabled"><li class="icon-zoom-out"></li></button>'
+ zoom += '<button class="btn btn-small" disabled="disabled"><i class="icon-zoom-out"></i></button>'
}
$('#dateNavigation .zoom').html(zoom);
}
View
@@ -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);
};
View
@@ -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) {
@@ -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);
View
@@ -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);
};
View
@@ -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
View
@@ -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,
View
@@ -43,7 +43,7 @@ var registerNewEventsLogger = function() {
messageColor = 'green+bold';
break;
default:
- message += '(unnown event)';
+ message += '(unknown event)';
messageColor = 'bold';
}
View
@@ -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);

0 comments on commit 5f0d11e

Please sign in to comment.