Skip to content

Commit

Permalink
Fixed typos
Browse files Browse the repository at this point in the history
  • Loading branch information
pborreli committed Jul 5, 2013
1 parent 34083c3 commit 5f0d11e
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Expand Up @@ -72,7 +72,7 @@ To be released


* This is the last release compatible with Node 0.6. * This is the last release compatible with Node 0.6.
* New events appear as such when watching event list * 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 2012-08-05, v1.3
---------------- ----------------
Expand Down
2 changes: 1 addition & 1 deletion app/api/routes/check.js
Expand Up @@ -62,7 +62,7 @@ module.exports = function(app) {
timestamp: new Date(), timestamp: new Date(),
check: req.check, check: req.check,
tags: req.check.tags, tags: req.check.tags,
message: req.check.isPaused ? 'paused' : 'restarted', message: req.check.isPaused ? 'paused' : 'restarted'
}).save(); }).save();
res.redirect(app.route + '/checks/' + req.params.id); res.redirect(app.route + '/checks/' + req.params.id);
}); });
Expand Down
6 changes: 3 additions & 3 deletions app/dashboard/public/javascripts/dateNavigation.js
Expand Up @@ -16,7 +16,7 @@ DateNavigation.prototype.init = function() {
interval.update(data.type, parseInt(data.date)); 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); setInterval(this.redrawPeriods.bind(this), 5 * 60 * 1000);


// redraw uptime bar when the data arrives // redraw uptime bar when the data arrives
Expand Down Expand Up @@ -152,13 +152,13 @@ DateNavigation.prototype.redrawZoom = function() {
if (subType !== false && !this.interval.isMaxZoom()) { 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>'; zoom += '<button class="btn btn-small" data-type="' + subType + '" data-date="' + this.interval.date + '"><li class="icon-zoom-in"></li></button>';
} else { } 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); var superType = this.interval.superType(this.interval.type);
if (superType !== false) { if (superType !== false) {
zoom += '<button class="btn btn-small" data-type="' + superType + '" data-date="' + this.interval.date + '"><li class="icon-zoom-out"></li></button>'; zoom += '<button class="btn btn-small" data-type="' + superType + '" data-date="' + this.interval.date + '"><li class="icon-zoom-out"></li></button>';
} else { } 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); $('#dateNavigation .zoom').html(zoom);
} }
Expand Down
4 changes: 2 additions & 2 deletions fixtures/populate.js
Expand Up @@ -10,7 +10,7 @@ var removeChecks = function(callback) {
console.log('Removing Checks'); console.log('Removing Checks');
async.series([ async.series([
function(cb) { CheckEvent.collection.remove(cb); }, function(cb) { CheckEvent.collection.remove(cb); },
function(cb) { Check.collection.remove(cb); }, function(cb) { Check.collection.remove(cb); }
], callback); ], callback);
}; };


Expand All @@ -20,7 +20,7 @@ var createFixtureChecks = function(callback) {
function(cb) { createDummyCheck(99.85, 'Good Quality', ['good', 'all'], cb); }, function(cb) { createDummyCheck(99.85, 'Good Quality', ['good', 'all'], cb); },
function(cb) { createDummyCheck(99, 'Neun und neunzig Luftballons', ['average', '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(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); ], callback);
}; };


Expand Down
6 changes: 3 additions & 3 deletions lib/monitor.js
Expand Up @@ -9,7 +9,7 @@ var PollerCollection = require('./pollers/pollerCollection');
/** /**
* Monitor constructor * 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 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 * 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. * ping measurements don't get distorted by a heavy usage of the GUI.
Expand Down Expand Up @@ -116,8 +116,8 @@ Monitor.prototype.pollCheck = function(check, callback) {
var details = {}; var details = {};
try { try {
Poller = this.pollerCollection.getForType(check.type || 'http'); Poller = this.pollerCollection.getForType(check.type || 'http');
} catch (unkownPollerError) { } catch (unknownPollerError) {
return self.createPing(unkownPollerError, check, now, 0, details, callback); return self.createPing(unknownPollerError, check, now, 0, details, callback);
} }
var pollerCallback = function(err, time, res) { var pollerCallback = function(err, time, res) {
if (err) { if (err) {
Expand Down
2 changes: 1 addition & 1 deletion lib/pollers/http/baseHttpPoller.js
Expand Up @@ -54,7 +54,7 @@ BaseHttpPoller.prototype.setUserAgent = function(userAgent) {
BaseHttpPoller.prototype.onResponseCallback = function(res) { BaseHttpPoller.prototype.onResponseCallback = function(res) {
var statusCode = res.statusCode; var statusCode = res.statusCode;
if (statusCode == 301 || statusCode == 302 || statusCode == 303) { 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) { if (statusCode != 200) {
return this.handleErrorResponse(res); return this.handleErrorResponse(res);
Expand Down
8 changes: 4 additions & 4 deletions lib/qosAggregator.js
Expand Up @@ -568,7 +568,7 @@ QosAggregator.prototype.updateYearlyQosStats = function(start, end, monthlyStatM
* @api public * @api public
*/ */
QosAggregator.prototype.updateLastHourQos = function(callback) { 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); this.updateHourlyQos(now, callback);
}; };


Expand All @@ -581,7 +581,7 @@ QosAggregator.prototype.updateLastHourQos = function(callback) {
* @api public * @api public
*/ */
QosAggregator.prototype.updateLastDayQos = function(callback) { 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); this.updateDailyQos(now, callback);
}; };


Expand All @@ -594,7 +594,7 @@ QosAggregator.prototype.updateLastDayQos = function(callback) {
* @api public * @api public
*/ */
QosAggregator.prototype.updateLastMonthQos = function(callback) { 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); this.updateMonthlyQos(now, callback);
}; };


Expand All @@ -607,7 +607,7 @@ QosAggregator.prototype.updateLastMonthQos = function(callback) {
* @api public * @api public
*/ */
QosAggregator.prototype.updateLastYearQos = function(callback) { 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); this.updateYearlyQos(now, callback);
}; };


Expand Down
2 changes: 1 addition & 1 deletion models/check.js
Expand Up @@ -142,7 +142,7 @@ Check.methods.mustNotifyEvent = function(status) {
return false; return false;
} }
if (this.errorCount === this.alertTreshold) { if (this.errorCount === this.alertTreshold) {
// enough down pings to trigger notofication // enough down pings to trigger notification
return true; return true;
} }
// error count higher than treshold, that means the alert was already sent // error count higher than treshold, that means the alert was already sent
Expand Down
2 changes: 1 addition & 1 deletion models/tagMonthlyStat.js
Expand Up @@ -5,7 +5,7 @@ var Schema = mongoose.Schema;
var TagMonthlyStat = new Schema({ var TagMonthlyStat = new Schema({
name : String, name : String,
timestamp : Date, 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, count : Number,
availability : Number, availability : Number,
responsiveness : Number, responsiveness : Number,
Expand Down
2 changes: 1 addition & 1 deletion plugins/console/index.js
Expand Up @@ -43,7 +43,7 @@ var registerNewEventsLogger = function() {
messageColor = 'green+bold'; messageColor = 'green+bold';
break; break;
default: default:
message += '(unnown event)'; message += '(unknown event)';
messageColor = 'bold'; messageColor = 'bold';
} }


Expand Down
2 changes: 1 addition & 1 deletion plugins/email/index.js
Expand Up @@ -53,7 +53,7 @@ exports.init = function() {
from: config.message.from, from: config.message.from,
to: config.message.to, to: config.message.to,
subject: lines.shift(), subject: lines.shift(),
text: lines.join('\n'), text: lines.join('\n')
}; };
mailer.sendMail(mailOptions, function(err2, response) { mailer.sendMail(mailOptions, function(err2, response) {
if (err2) return console.error(err2); if (err2) return console.error(err2);
Expand Down

0 comments on commit 5f0d11e

Please sign in to comment.