Add portal uptime to @time command.

This commit is contained in:
Tehom 2018-10-18 04:24:03 -04:00
parent 1f3d8d1b96
commit 040cc2aa9f
6 changed files with 20 additions and 1 deletions

View file

@ -11,6 +11,7 @@ from builtins import object
import sys
import os
import time
from os.path import dirname, abspath
from twisted.application import internet, service
@ -114,6 +115,8 @@ class Portal(object):
self.server_restart_mode = "shutdown"
self.server_info_dict = {}
self.start_time = time.time()
# in non-interactive portal mode, this gets overwritten by
# cmdline sent by the evennia launcher
self.server_twistd_cmd = self._get_backup_server_twistd_cmd()