diff options
author | Simon Rettberg | 2021-04-21 17:58:49 +0200 |
---|---|---|
committer | Simon Rettberg | 2021-04-21 18:00:49 +0200 |
commit | 4caa6fa38f9edbd2e55227ba0493de2b9232e58a (patch) | |
tree | 0f6ba32ec82662b74e917785031bc936b09ff517 /modules-available | |
parent | [dozmod] Always render expired/orphaned images template (diff) | |
download | slx-admin-4caa6fa38f9edbd2e55227ba0493de2b9232e58a.tar.gz slx-admin-4caa6fa38f9edbd2e55227ba0493de2b9232e58a.tar.xz slx-admin-4caa6fa38f9edbd2e55227ba0493de2b9232e58a.zip |
[minilinux] Prevent overflow
Diffstat (limited to 'modules-available')
-rw-r--r-- | modules-available/minilinux/inc/minilinux.inc.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules-available/minilinux/inc/minilinux.inc.php b/modules-available/minilinux/inc/minilinux.inc.php index d172d982..ddd0061d 100644 --- a/modules-available/minilinux/inc/minilinux.inc.php +++ b/modules-available/minilinux/inc/minilinux.inc.php @@ -33,7 +33,8 @@ class MiniLinux Database::exec("UPDATE minilinux_version INNER JOIN minilinux_branch USING (branchid) INNER JOIN minilinux_source USING (sourceid) - SET orphan = orphan + 1 WHERE minilinux_source.lastupdate < $cutoff"); + SET orphan = orphan + 1 + WHERE minilinux_source.lastupdate < $cutoff AND orphan < 100"); $list = Database::queryAll('SELECT sourceid, url, taskid FROM minilinux_source'); foreach ($list as $source) { Taskmanager::submit('DownloadText', array( |