Set default delay to posts when delay is lower

This commit is contained in:
Bofh 2022-12-24 02:46:27 +01:00
parent 52f99b064b
commit 5f2cc85c9a
1 changed files with 1 additions and 0 deletions

View File

@ -30,6 +30,7 @@ ORDER BY id ASC LIMIT '.$limit.'
$delay = intval($delay['count']); $delay = intval($delay['count']);
if ($delay > $limit) if ($delay > $limit)
$delay = ['total' => $delay, 'ticks' => intval($delay / $limit)]; $delay = ['total' => $delay, 'ticks' => intval($delay / $limit)];
else $delay = ['total' => $delay, 'ticks' => 1 ];
$pg->close(); $pg->close();
return apiresult([ return apiresult([