mirror of
https://github.com/TryGhost/Ghost.git
synced 2023-12-13 21:00:40 +01: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'),
|
||||
errors = require('./errors'),
|
||||
config = require('./config'),
|
||||
i18n = require('./i18n');
|
||||
i18n = require('./i18n'),
|
||||
moment = require('moment');
|
||||
|
||||
/**
|
||||
* ## GhostServer
|
||||
|
@ -190,8 +191,7 @@ GhostServer.prototype.logStartMessages = function () {
|
|||
} else {
|
||||
console.log(
|
||||
i18n.t('notices.httpServer.ghostWasRunningFor'),
|
||||
Math.round(process.uptime()),
|
||||
i18n.t('common.time.seconds')
|
||||
moment.duration(process.uptime(), 'seconds').humanize()
|
||||
);
|
||||
}
|
||||
process.exit(0);
|
||||
|
|
Loading…
Reference in a new issue