Improved compatibility of datetime field
This commit is contained in:
parent
cdf2724bd8
commit
7bd66d654b
|
@ -750,7 +750,8 @@ def speedtest():
|
||||||
fieldnames=headers)
|
fieldnames=headers)
|
||||||
|
|
||||||
server = '%(sponsor)s (%(name)s) [%(d)0.2f km]' % best
|
server = '%(sponsor)s (%(name)s) [%(d)0.2f km]' % best
|
||||||
current_time = datetime.datetime.now().isoformat()
|
current_time = datetime.datetime.now().strftime(
|
||||||
|
"%Y/%m/%d %H:%M:%S")
|
||||||
dlspeedk = int(round((dlspeed / 1000) * 8, 0))
|
dlspeedk = int(round((dlspeed / 1000) * 8, 0))
|
||||||
ping = float(round(best['latency'], 2))
|
ping = float(round(best['latency'], 2))
|
||||||
ulspeedk = int(round((ulspeed / 1000) * 8, 0))
|
ulspeedk = int(round((ulspeed / 1000) * 8, 0))
|
||||||
|
|
Loading…
Reference in New Issue