From 6866ff9b1ef4bc9e677f79a46bd1996d51b52448 Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Wed, 22 Jul 2015 16:19:30 +0200 Subject: [PATCH] Remove trailing whitespace --- benches/buffer_bench.js | 2 +- examples/subquery.js | 2 +- multi_bench.js | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/benches/buffer_bench.js b/benches/buffer_bench.js index df16d90bf4..64347e583f 100644 --- a/benches/buffer_bench.js +++ b/benches/buffer_bench.js @@ -2,7 +2,7 @@ var source = new Buffer(100), dest = new Buffer(100), i, j, k, tmp, count = 1000000, bytes = 100; - + for (i = 99 ; i >= 0 ; i--) { source[i] = 120; } diff --git a/examples/subquery.js b/examples/subquery.js index 4f1edb0ffd..ffb7eca382 100644 --- a/examples/subquery.js +++ b/examples/subquery.js @@ -9,7 +9,7 @@ function print_results(obj) { // build a map of all keys and their types client.keys("*", function (err, all_keys) { var key_types = {}; - + all_keys.forEach(function (key, pos) { // use second arg of forEach to get pos client.type(key, function (err, type) { key_types[key] = type; diff --git a/multi_bench.js b/multi_bench.js index 4e99376787..9f210a76d4 100644 --- a/multi_bench.js +++ b/multi_bench.js @@ -25,13 +25,13 @@ function lpad(input, len, chr) { metrics.Histogram.prototype.print_line = function () { var obj = this.printObj(); - + return lpad(obj.min, 4) + "/" + lpad(obj.max, 4) + "/" + lpad(obj.mean.toFixed(2), 7) + "/" + lpad(obj.p95.toFixed(2), 7); }; function Test(args) { this.args = args; - + this.callback = null; this.clients = []; this.clients_ready = 0; @@ -58,7 +58,7 @@ Test.prototype.run = function (callback) { Test.prototype.new_client = function (id) { var self = this, new_client; - + new_client = redis.createClient(6379, "127.0.0.1", this.client_options); new_client.create_time = Date.now(); @@ -97,7 +97,7 @@ Test.prototype.fill_pipeline = function () { pipeline++; this.send_next(); } - + if (this.commands_completed === this.num_requests) { this.print_stats(); this.stop_clients(); @@ -106,7 +106,7 @@ Test.prototype.fill_pipeline = function () { Test.prototype.stop_clients = function () { var self = this; - + this.clients.forEach(function (client, pos) { if (pos === self.clients.length - 1) { client.quit(function (err, res) { @@ -135,7 +135,7 @@ Test.prototype.send_next = function () { Test.prototype.print_stats = function () { var duration = Date.now() - this.test_start; - + console.log("min/max/avg/p95: " + this.command_latency.print_line() + " " + lpad(duration, 6) + "ms total, " + lpad((this.num_requests / (duration / 1000)).toFixed(2), 8) + " ops/sec"); };