fix: seuil fraîcheur 48h (satellite ≠ temps réel)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Gwadaking
2026-04-22 22:32:32 -04:00
parent dc97275928
commit 4897397df8

View File

@@ -38,7 +38,9 @@ class StatusController extends AbstractController
$now = new \DateTimeImmutable('now', new \DateTimeZone('UTC'));
$ageSeconds = $now->getTimestamp() - $detectedAt->getTimestamp();
if ($ageSeconds <= 6 * 3600) {
// Sentinel-3 : quotidien. Sentinel-2 : toutes les 5 jours.
// 48h couvre les gaps weekend + latence de traitement.
if ($ageSeconds <= 48 * 3600) {
$healthy = true;
} else {
$alertReason = 'stale_data';