Set default delay to posts when delay is lower
This commit is contained in:
parent
52f99b064b
commit
5f2cc85c9a
|
@ -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([
|
||||||
|
|
Loading…
Reference in New Issue