Merge pull request #312 from matiu/bug/ts-in-sync

ts in js epoch
This commit is contained in:
Matias Alejo Garcia 2014-02-14 11:48:03 -02:00
commit e701bab63a
1 changed files with 3 additions and 3 deletions

View File

@ -92,7 +92,7 @@ function spec() {
}
else {
self.startTs = parseInt(Date.now()/1000);
self.startTs = parseInt(Date.now());
// check testnet?
self.rpc.getBlockHash(0, function(err, res){
@ -205,7 +205,7 @@ function spec() {
if ( self.found && self.syncedBlocks >= self.blockChainHeight ) {
self.endTs = parseInt(Date.now()/1000);
self.endTs = parseInt(Date.now());
self.status = 'finished';
p('DONE. Height: ' , self.syncedBlocks);
return cb(err);
@ -299,7 +299,7 @@ function spec() {
self.syncedBlocks++;
}
else {
self.endTs = parseInt(Date.now()/1000);
self.endTs = parseInt(Date.now());
self.status = 'finished';
}