From 6a696fe1dd5f671b03553b32bf83129a30fe22c3 Mon Sep 17 00:00:00 2001 From: Mavis Ou Date: Wed, 8 May 2013 15:28:33 -0700 Subject: [PATCH] fixes for uploading data continuously --- data/clock.js | 1 - lib/connection.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/data/clock.js b/data/clock.js index 94126f0..18adc35 100644 --- a/data/clock.js +++ b/data/clock.js @@ -115,7 +115,6 @@ function onConnection(conn){ function appendNodeG(bucket,connection,nodeType){ - console.log(connection); var g = svg('g', { 'class': 'node ' + nodeType, 'data-name': connection[nodeType] diff --git a/lib/connection.js b/lib/connection.js index 80ca44a..e6cdb3e 100644 --- a/lib/connection.js +++ b/lib/connection.js @@ -411,7 +411,7 @@ Connection.upload = function(){ log('Beginning Upload'); var lastUpload = storage.lastUpload || 0; var connections = storage.connections.filter(function(connection){ - return connection.timestamp > lastUpload; + return ( connection.timestamp || connection[Connection.TIMESTAMP] ) > lastUpload; }).map(Connection.restore); var data = exportFormat(connections); var request = Request({