mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-09-25 10:59:15 +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
172008bac3
commit
2c477e6947
@ -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>
|
2014-01-14 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
* util/recon_scripts/snmpdevices.pl: Added address check
|
* util/recon_scripts/snmpdevices.pl: Added address check
|
||||||
|
@ -244,7 +244,7 @@ sub pandora_server_tasks ($) {
|
|||||||
|
|
||||||
my $counter = 0;
|
my $counter = 0;
|
||||||
while (1) {
|
while (1) {
|
||||||
|
eval{
|
||||||
# TASKS EXECUTED EVERY 5 SECONDS (Low latency tasks)
|
# TASKS EXECUTED EVERY 5 SECONDS (Low latency tasks)
|
||||||
# --------------------------------------------------
|
# --------------------------------------------------
|
||||||
if (($counter % 5) == 0) {
|
if (($counter % 5) == 0) {
|
||||||
@ -325,6 +325,7 @@ sub pandora_server_tasks ($) {
|
|||||||
else {
|
else {
|
||||||
$counter++;
|
$counter++;
|
||||||
}
|
}
|
||||||
|
};
|
||||||
|
|
||||||
sleep (1);
|
sleep (1);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user