ts in js epoch

This commit is contained in:
Matias Alejo Garcia 2014-02-14 10:46:26 -03:00
parent b430742aa8
commit 48d5af8072
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';
}