mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
2014-01-15 Ramon Novoa <rnovoa@artica.es>
* bin/pandora_server: Prevent the thread that executes periodic tasks from dying on database errors. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9324 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
b3bc59e9ed
commit
13c843274a
@ -1,3 +1,8 @@
|
||||
2014-01-15 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* bin/pandora_server: Prevent the thread that executes periodic tasks
|
||||
from dying on database errors.
|
||||
|
||||
2014-01-14 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* util/recon_scripts/snmpdevices.pl: Added address check
|
||||
|
@ -244,7 +244,7 @@ sub pandora_server_tasks ($) {
|
||||
|
||||
my $counter = 0;
|
||||
while (1) {
|
||||
|
||||
eval{
|
||||
# TASKS EXECUTED EVERY 5 SECONDS (Low latency tasks)
|
||||
# --------------------------------------------------
|
||||
if (($counter % 5) == 0) {
|
||||
@ -325,6 +325,7 @@ sub pandora_server_tasks ($) {
|
||||
else {
|
||||
$counter++;
|
||||
}
|
||||
};
|
||||
|
||||
sleep (1);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user