File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1222,7 +1222,11 @@ def GetPrintTimeRemainingEstimateInSeconds_WithPrintStatsVirtualSdCardAndGcodeMo
1222
1222
inverseSpeedFactorFloat = 1.0 / speedFactorFloat
1223
1223
estimatedPrintTime = FileMetadataCache .Get ().GetEstimatedPrintTimeSec (fileName )
1224
1224
totalFilamentUse = FileMetadataCache .Get ().GetEstimatedFilamentUsageMm (fileName )
1225
- def calcTimeLeftWithProgress (printTime , progress ): return (printTime / progress ) - printTime
1225
+ def calcTimeLeftWithProgress (printTime , progress ):
1226
+ if progress == 0 :
1227
+ return printTime
1228
+ else :
1229
+ return (printTime / progress ) - printTime
1226
1230
1227
1231
# Can we calculate yet?
1228
1232
if printTime > 0 :
Original file line number Diff line number Diff line change 22
22
23
23
# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
24
24
# Note that this is also parsed by the moonraker module to pull the version, so the string and format must remain the same!
25
- plugin_version = "2.1.11 "
25
+ plugin_version = "2.1.12 "
26
26
27
27
# The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
28
28
# module
You can’t perform that action at this time.
0 commit comments