Skip to content

Commit

Permalink
Changed the min() to max() :-)
Browse files Browse the repository at this point in the history
  • Loading branch information
moggieuk committed May 27, 2024
1 parent 15f6520 commit 661c886
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions moonraker/components/file_manager/file_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -2549,11 +2549,11 @@ async def _run_extract_metadata(self,
self.gc_path, "-f", f"\"{filename}\""])
timeout = self.default_metadata_parser_timeout
if ufp_path is not None and os.path.isfile(ufp_path):
timeout = min(timeout, 300.)
timeout = max(timeout, 300.)
ufp_path.replace("\"", "\\\"")
cmd += f" -u \"{ufp_path}\""
if self.enable_object_proc:
timeout = min(timeout, 300.)
timeout = max(timeout, 300.)
cmd += " --check-objects"
result = bytearray()
sc: SCMDComp = self.server.lookup_component('shell_command')
Expand Down

0 comments on commit 661c886

Please sign in to comment.