Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

10 sec period; better output

  • Loading branch information...
commit 04ff781bcbcdb8830c6a4634c3d3bf680ff17bb9 1 parent 4e05255
@alexch authored
Showing with 6 additions and 4 deletions.
  1. BIN  builds/whence.crx
  2. +6 −4 ext/whence.js
View
BIN  builds/whence.crx
Binary file not shown
View
10 ext/whence.js
@@ -65,8 +65,9 @@ function couch(method, options) {
console.log("Found database " + dbName);
nextStep();
} else {
- console.log(e.responseText);
- console.log(e);
+ console.log("Can't create database " + dbName);
+ console.log(error.responseText);
+ console.log(error);
}
}
});
@@ -111,7 +112,7 @@ function setupDesignDocs() {
couch('get', {
docId: designDocId,
error: function(error) {
- if (error.code == 404) {
+ if (error.status == 404) {
console.log("Creating design doc")
couch('put', {
docId: designDocId,
@@ -128,6 +129,7 @@ function setupDesignDocs() {
}
},
success: function(response) {
+ console.log(views);
// only re-put if it's different
if (JSON.stringify(views) != JSON.stringify(response.views)) {
console.log("Updating design doc")
@@ -201,7 +203,7 @@ function startTicker() {
migrateWhens();
console.log("---------- starting ticker")
- var period = 1 * 1000; // msec between ticks
+ var period = 10 * 1000; // msec between ticks
var lastTick = null;
var slop = 1 * 1000; // msec of lag to consider two ticks the same
Please sign in to comment.
Something went wrong with that request. Please try again.