Time correction to stats page
This commit is contained in:
parent
6edabeeecc
commit
0efa6a5816
1 changed files with 12 additions and 10 deletions
|
@ -65,7 +65,6 @@ class UiRequestPlugin(object):
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# Memory
|
# Memory
|
||||||
try:
|
|
||||||
yield "rev%s | " % config.rev
|
yield "rev%s | " % config.rev
|
||||||
yield "%s | " % config.ip_external
|
yield "%s | " % config.ip_external
|
||||||
yield "Port: %s | " % main.file_server.port
|
yield "Port: %s | " % main.file_server.port
|
||||||
|
@ -76,6 +75,9 @@ class UiRequestPlugin(object):
|
||||||
float(main.file_server.bytes_sent) / 1024 / 1024
|
float(main.file_server.bytes_sent) / 1024 / 1024
|
||||||
)
|
)
|
||||||
yield "Peerid: %s | " % main.file_server.peer_id
|
yield "Peerid: %s | " % main.file_server.peer_id
|
||||||
|
yield "Time correction: %.2fs" % main.file_server.getTimeCorrection()
|
||||||
|
|
||||||
|
try:
|
||||||
import psutil
|
import psutil
|
||||||
process = psutil.Process(os.getpid())
|
process = psutil.Process(os.getpid())
|
||||||
mem = process.get_memory_info()[0] / float(2 ** 20)
|
mem = process.get_memory_info()[0] / float(2 ** 20)
|
||||||
|
|
Loading…
Reference in a new issue