Use absolute value of diff between rslight/newsportal highest artnum when checking count integrity.

This commit is contained in:
Retro_Guy 2024-10-02 14:34:38 -07:00
parent 272c386794
commit 251de8bf38
1 changed files with 1 additions and 1 deletions

View File

@ -1644,7 +1644,7 @@ function repair_broken_group($group)
$newsportal_info = trim($newsportal_info[1]);
$newsportal_start = explode(" ", $newsportal_info);
$rslight_start = explode(" ", $rslight_info);
if ($newsportal_start[0] != $rslight_start[0] || (($rslight_start[2] - $newsportal_start[2]) > 5)) {
if ($newsportal_start[0] != $rslight_start[0] || (abs($rslight_start[2] - $newsportal_start[2]) > 5)) {
file_put_contents($debug_log, "\n " . format_log_date() . " GROUP MISMATCH: " . $group . " rslight: " . $rslight_info . " newsportal: " . $newsportal_info . " Repairing...", FILE_APPEND);
wipe_newsportal_spool_info($group);
}