diff options
author | Vladimir Mandic <mandic00@live.com> | 2023-01-14 21:03:29 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-14 21:03:29 +0000 |
commit | ce9827a7c51a9f69bf62c634e35d34fa75ee1833 (patch) | |
tree | 20a114d7ffb1e2ac1426738699664499edc03165 /modules/shared.py | |
parent | beeec2b59833abe7ab6f90bdf99c65796a10bca0 (diff) | |
parent | fad850fc3d33e7cda2ce4b3a32ab7976c313db53 (diff) | |
download | stable-diffusion-webui-gfx803-ce9827a7c51a9f69bf62c634e35d34fa75ee1833.tar.gz stable-diffusion-webui-gfx803-ce9827a7c51a9f69bf62c634e35d34fa75ee1833.tar.bz2 stable-diffusion-webui-gfx803-ce9827a7c51a9f69bf62c634e35d34fa75ee1833.zip |
Merge pull request #6731 from vladmandic/state_server_start
Add server start time to state info
Diffstat (limited to 'modules/shared.py')
-rw-r--r-- | modules/shared.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/shared.py b/modules/shared.py index 9756adea..51df056c 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -168,6 +168,7 @@ class State: textinfo = None
time_start = None
need_restart = False
+ server_start = None
def skip(self):
self.skipped = True
@@ -241,6 +242,7 @@ class State: state = State()
+state.server_start = time.time()
artist_db = modules.artists.ArtistsDatabase(os.path.join(script_path, 'artists.csv'))
|