Verified Commit 8c927c82 authored by Grégor JOUET's avatar Grégor JOUET 🔧
Browse files

Fix remaining time

parent 3fcb2364
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -202,7 +202,7 @@ export default {
      return utils.secondsToHms(d)
    },
    print_state() {
      if (Math.ceil(this.infos.printer_progress) <= 1) {
      if (! this.base_infos.progress || Math.ceil(this.base_infos.progress['progress']) <= 1) {
        return "??% - ?? h, ?? min, ?? sec"
      }
      return Math.floor(this.base_infos.progress['progress']) + "% - " + this.convert_time(this.base_infos.progress["printTimeLeft"])