mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
SQLs are performed up to an execution time of 45s, then a page reload is induced to avoid fcgi/cgi/modphp timeouts.
This commit is contained in:
@@ -34,7 +34,7 @@ while (!feof($sql_fh)) {
|
||||
if (isset($_SESSION['offset']) && $limit < $_REQUEST['offset']) {
|
||||
continue;
|
||||
}
|
||||
elseif ( abs($limit-$_REQUEST['offset']) > 6) {
|
||||
elseif ( time()-$_SESSION['last'] > 45 ) {
|
||||
$_SESSION['offset'] = $limit;
|
||||
$GLOBALS['refresh'] = '<b>Installing, please wait..</b><sub>'.date('r').'</sub><script>window.location.href = "install.php?offset='.$limit.'";</script>';
|
||||
return;
|
||||
|
Reference in New Issue
Block a user