mirror of
https://github.com/TheBinaryNinja/tvapp2.git
synced 2026-06-04 05:15:42 -04:00
chore: add new variable to ejs template
This commit is contained in:
@@ -2271,7 +2271,8 @@ const server = http.createServer( ( req, resp ) =>
|
|||||||
appGitHashLong: envGitSHA1,
|
appGitHashLong: envGitSHA1,
|
||||||
appUptimeShort: timeAgo.format( Date.now() - Math.round( process.uptime() ) * 1000, 'twitter' ),
|
appUptimeShort: timeAgo.format( Date.now() - Math.round( process.uptime() ) * 1000, 'twitter' ),
|
||||||
appUptimeLong: timeAgo.format( Date.now() - process.uptime() * 1000, 'twitter' ),
|
appUptimeLong: timeAgo.format( Date.now() - process.uptime() * 1000, 'twitter' ),
|
||||||
appStartup: Math.round( TIME_STARTUP ) / 1000
|
appStartup: Math.round( TIME_STARTUP ) / 1000,
|
||||||
|
serverOs: osName(os.platform(), os.release())
|
||||||
}, ( err, data ) =>
|
}, ( err, data ) =>
|
||||||
{
|
{
|
||||||
if ( !err )
|
if ( !err )
|
||||||
|
|||||||
Reference in New Issue
Block a user