http: minor.

This commit is contained in:
Christopher Jeffrey 2016-11-18 23:39:52 -08:00
parent 5ad3b9612d
commit 091ddf2029
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -570,10 +570,6 @@ HTTPServer.prototype._init = function _init() {
this.get('/', function(req, res, send, next) {
var totalTX = this.mempool ? this.mempool.totalTX : 0;
var size = this.mempool ? this.mempool.getSize() : 0;
var uptime = 0;
if (process.uptime)
uptime = process.uptime();
send(200, {
version: constants.USER_VERSION,
@ -588,7 +584,7 @@ HTTPServer.prototype._init = function _init() {
progress: this.chain.getProgress(),
mempoolTX: totalTX,
mempoolSize: size,
uptime: Math.floor(uptime),
uptime: Math.floor(utils.uptime()),
systemTime: utils.now(),
adjustedTime: time.now(),
timeOffset: time.offset,