fix: seuil fraîcheur 48h (satellite ≠ temps réel)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user