change ETA to HH:MM:SS

This commit is contained in:
Franzi 2019-01-27 10:46:54 +01:00
parent 4dbc988166
commit 0d51a4bb49
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ class LCD_HD44780(octoprint.plugin.StartupPlugin,
self._line3 = '{:6.2f}'.format(data['progress']['completion']) + '%'
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:
self._line3 = ''
else: