2
1
Fork 0
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:
Cezary Kluczyński 2016-09-19 12:28:18 +02:00 committed by Hannah Wolfe
parent f64c13af36
commit 83b426ad14

View file

@ -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);