change ETA to HH:MM:SS
This commit is contained in:
parent
4dbc988166
commit
0d51a4bb49
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@ class LCD_HD44780(octoprint.plugin.StartupPlugin,
|
||||||
self._line3 = '{:6.2f}'.format(data['progress']['completion']) + '%'
|
self._line3 = '{:6.2f}'.format(data['progress']['completion']) + '%'
|
||||||
|
|
||||||
if data['progress']['printTimeLeft'] is not None:
|
if data['progress']['printTimeLeft'] is not None:
|
||||||
self._line3 += ' ~' + '{:1.0f}:{:02.0f}'.format(data['progress']['printTimeLeft']/60, data['progress']['printTimeLeft']%60) + 'min '
|
self._line3 += ' ~' + '{:1.0f}:{:02.0f}:{:02.0f}'.format(data['progress']['printTimeLeft']/3600, data['progress']['printTimeLeft']%3600/60, data['progress']['printTimeLeft']%60)
|
||||||
else:
|
else:
|
||||||
self._line3 = ''
|
self._line3 = ''
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue