diff --git a/bin/lib/installable/rust.py b/bin/lib/installable/rust.py index d2480c5d0..77e6f7d7f 100644 --- a/bin/lib/installable/rust.py +++ b/bin/lib/installable/rust.py @@ -84,12 +84,12 @@ def should_install(self) -> bool: dest_dir = self.install_context.destination / self.install_path if os.path.exists(dest_dir): dtime = datetime.fromtimestamp(dest_dir.stat().st_mtime) - # The fudge factor of 30m is to sort of account for the installation time. Else + # The fudge factor of 90m is to sort of account for the installation time. Else # we start up the same time the next day and we get a 23hr58 minute old build and we # don't reinstall. - age = datetime.now() - dtime + timedelta(minutes=30) + age = datetime.now() - dtime + timedelta(minutes=90) self._logger.info("Nightly build %s is %s old", dest_dir, age) - if age.days > self.nightly_install_days: + if age > timedelta(days=self.nightly_install_days): return True return super().should_install()