Space out build checks a little more; only check once an hour

This commit is contained in:
Simon Quigley 2025-02-08 16:46:47 -06:00
parent 731bbda848
commit ae22b08ad7

View File

@ -926,6 +926,7 @@ bool PackageConf::can_check_builds() {
if (!build_check_ok && source_check_ok) return true; if (!build_check_ok && source_check_ok) return true;
else if (!build_check_ok && !source_check_ok) return false; else if (!build_check_ok && !source_check_ok) return false;
else if (source_check_ok && build_check_ok && !build_check_successful && (build_check_time >= (now - (60 * 60 * 1000)))) return false;
else if (source_check_ok && build_check_ok && !build_check_successful && (build_check_time >= (now - (4 * 24 * 60 * 60 * 1000)))) return true; else if (source_check_ok && build_check_ok && !build_check_successful && (build_check_time >= (now - (4 * 24 * 60 * 60 * 1000)))) return true;
else return source_check_ok && build_check_ok && (build_check_time <= source_check_time); else return source_check_ok && build_check_ok && (build_check_time <= source_check_time);
} }