mirror of
https://gitlab.com/JKANetwork/CheckServer.git
synced 2026-02-21 04:23:47 +01:00
Fix for new tests at index
This commit is contained in:
@@ -14,8 +14,9 @@ while ($onechk = dbw_fetch_array($db_conn,$results)){
|
||||
$idchk = $onechk['ID_C'];
|
||||
$chks[$idchk] = $onechk; //First array data
|
||||
$chks[$idchk]['nameGroup'] = $groups[$onechk['ID_G']]; //Know group of this check
|
||||
$ID_TC = $chks[$idchk]['ID_TC']; //Type of Check
|
||||
|
||||
switch ($chks[$idchk]['ID_TC']){
|
||||
switch ($ID_TC){
|
||||
// Case 1 and 2 are normal status, case 3 (Visits) is numeric, not status
|
||||
case 1: //Ping
|
||||
case 2: //HttpCode
|
||||
@@ -34,7 +35,6 @@ while ($onechk = dbw_fetch_array($db_conn,$results)){
|
||||
$chks[$idchk]['dateLastErr'] = date('d/m H:i',$lastErr);
|
||||
}
|
||||
|
||||
$ID_TC = $chks[$idchk]['ID_TC'];
|
||||
$chks[$idchk]['nameCheck'] = textTypeChk($ID_TC);
|
||||
|
||||
if ($onechk['manStatus'] != ''){
|
||||
@@ -43,7 +43,8 @@ while ($onechk = dbw_fetch_array($db_conn,$results)){
|
||||
$chks[$idchk]['uptime'] = getUptime($idchk);
|
||||
}
|
||||
list($chks[$idchk]['statusText'],$chks[$idchk]['statusColor']) = getStatus($idchk);
|
||||
|
||||
}else{
|
||||
$chks[$idchk]['uptime'] = -1; //Anything collected yet
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user