http: minor.
This commit is contained in:
parent
5ad3b9612d
commit
091ddf2029
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user