mirror of https://github.com/D4-project/d4-core
fix: [UI v0.3] convert epoch to date, fix #12
parent
ea22b5677d
commit
8dbd2cd0b1
|
@ -251,6 +251,8 @@ def server_management():
|
|||
last_updated = redis_server_metadata.hget('analyzer:{}'.format(analyzer_uuid), 'last_updated')
|
||||
if last_updated is None:
|
||||
last_updated = 'Never'
|
||||
else:
|
||||
last_updated = datetime.datetime.fromtimestamp(float(last_updated)).strftime('%Y-%m-%d %H:%M:%S')
|
||||
len_queue = redis_server_analyzer.llen('analyzer:{}:{}'.format(extended_type, analyzer_uuid))
|
||||
if len_queue is None:
|
||||
len_queue = 0
|
||||
|
|
Loading…
Reference in New Issue