2007-07-20 Sancho Lerena <slerena@artica.es>
* operation/servers/view_server.php: Fixed bug with Data Server lag check (#1757084) * operation/agents/tactical.php: Fixed the same bug above (#1757084) git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@571 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
7ab574e36e
commit
81b1cebe61
|
@ -1,5 +1,10 @@
|
|||
2007-07-19 Sancho Lerena <slerena@artica.es>
|
||||
2007-07-20 Sancho Lerena <slerena@artica.es>
|
||||
|
||||
* operation/servers/view_server.php: Fixed bug with Data Server lag check
|
||||
|
||||
* operation/agents/tactical.php: Fixed the same bug above.
|
||||
|
||||
2007-07-19 Sancho Lerena <slerena@artica.es>
|
||||
|
||||
* godmode/agentes/agent_manager.php: Fixed problems not really
|
||||
fixed in commit 563 (bug 1744913).
|
||||
|
|
|
@ -273,7 +273,11 @@
|
|||
// and calculate difference in seconds
|
||||
// Get total modules defined for this server
|
||||
if (($network_server == 1) OR ($data_server == 1)){
|
||||
$sql1 = "SELECT MIN(last_execution_try), current_interval FROM tagente_estado WHERE last_execution_try > 0 AND running_by=$id_server GROUP BY current_interval ORDER BY 1";
|
||||
if ($network_server == 1)
|
||||
$sql1 = "SELECT MIN(last_execution_try),current_interval FROM tagente_estado WHERE last_execution_try > 0 AND running_by=$id_server GROUP BY current_interval ORDER BY 1";
|
||||
if ($data_server == 1)
|
||||
$sql1 = "SELECT MAX(last_execution_try), current_interval, id_agente FROM tagente_estado WHERE last_execution_try > 0 AND running_by=$id_server GROUP BY id_agente ORDER BY 1 ASC";
|
||||
|
||||
$nowtime = time();
|
||||
$maxlag=0;
|
||||
if ($result1=mysql_query($sql1))
|
||||
|
|
|
@ -158,7 +158,10 @@ if (comprueba_login() == 0) {
|
|||
// and calculate difference in seconds
|
||||
// Get total modules defined for this server
|
||||
if (($network_server == 1) OR ($data_server == 1)){
|
||||
$sql1 = "SELECT MIN(last_execution_try),current_interval FROM tagente_estado WHERE last_execution_try > 0 AND running_by=$id_server GROUP BY current_interval ORDER BY 1";
|
||||
if ($network_server == 1)
|
||||
$sql1 = "SELECT MIN(last_execution_try),current_interval FROM tagente_estado WHERE last_execution_try > 0 AND running_by=$id_server GROUP BY current_interval ORDER BY 1";
|
||||
if ($data_server == 1)
|
||||
$sql1 = "SELECT MAX(last_execution_try), current_interval, id_agente FROM tagente_estado WHERE last_execution_try > 0 AND running_by=$id_server GROUP BY id_agente ORDER BY 1 ASC";
|
||||
$nowtime = time();
|
||||
$maxlag=0;
|
||||
if ($result1=mysql_query($sql1))
|
||||
|
|
Loading…
Reference in New Issue