mirror of
https://github.com/powerline/powerline.git
synced 2025-04-08 19:25:04 +02:00
Fixes elapsed time that is provided with a ',' instead of a '.' (#2104)
This commit is contained in:
parent
65f968ad3a
commit
14a4100c4c
@ -31,6 +31,8 @@ def _convert_state(state):
|
||||
|
||||
def _convert_seconds(seconds):
|
||||
'''Convert seconds to minutes:seconds format'''
|
||||
if isinstance(seconds, str):
|
||||
seconds = seconds.replace(",",".")
|
||||
return '{0:.0f}:{1:02.0f}'.format(*divmod(float(seconds), 60))
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user