mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Changed formatting of run time to human readable (#7318)
This commit is contained in:
parent
f64c13af36
commit
83b426ad14
1 changed files with 3 additions and 3 deletions
|
@ -5,7 +5,8 @@ var Promise = require('bluebird'),
|
||||||
fs = require('fs'),
|
fs = require('fs'),
|
||||||
errors = require('./errors'),
|
errors = require('./errors'),
|
||||||
config = require('./config'),
|
config = require('./config'),
|
||||||
i18n = require('./i18n');
|
i18n = require('./i18n'),
|
||||||
|
moment = require('moment');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ## GhostServer
|
* ## GhostServer
|
||||||
|
@ -190,8 +191,7 @@ GhostServer.prototype.logStartMessages = function () {
|
||||||
} else {
|
} else {
|
||||||
console.log(
|
console.log(
|
||||||
i18n.t('notices.httpServer.ghostWasRunningFor'),
|
i18n.t('notices.httpServer.ghostWasRunningFor'),
|
||||||
Math.round(process.uptime()),
|
moment.duration(process.uptime(), 'seconds').humanize()
|
||||||
i18n.t('common.time.seconds')
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
process.exit(0);
|
process.exit(0);
|
||||||
|
|
Loading…
Add table
Reference in a new issue