Skip to content

Commit

Permalink
Fix CSV age math
Browse files Browse the repository at this point in the history
  • Loading branch information
waldoj committed Dec 28, 2023
1 parent b9e36e1 commit 68cb9a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cron/checks.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
*/
if (time()-filemtime(__DIR__ . '/' . $file) > $age * 3600)
{
$age = time()-filemtime($file) * 3600;
$log->put('Error: ' . $file . ' shouldn’t be older than ' . $age . ' hours, but it '
. 'hasn’t been updated in ' . $age . ' hours.', 7);
$file_age = (time()-filemtime($file)) / 3600;
$log->put('Error: The local copy of ' . $file . ' hasn’t been updated in ' . $file_age
. ' hours.', 7);
}

}
Expand Down

0 comments on commit 68cb9a6

Please sign in to comment.