summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTriatmoko2011-11-18 01:44:41 +0100
committerTriatmoko2011-11-18 01:44:41 +0100
commitc4f8d4b397ab56775d0a33e0a198923a3186e442 (patch)
treeaf8f14779a118c2215933db43f08fb6cf421c3e3
parentedit nagios algorithm (diff)
downloadgsm-selftest-c4f8d4b397ab56775d0a33e0a198923a3186e442.tar.gz
gsm-selftest-c4f8d4b397ab56775d0a33e0a198923a3186e442.tar.xz
gsm-selftest-c4f8d4b397ab56775d0a33e0a198923a3186e442.zip
fix truth table value for task list
-rw-r--r--Under-Testing/Website/mutexTry.php37
1 files changed, 27 insertions, 10 deletions
diff --git a/Under-Testing/Website/mutexTry.php b/Under-Testing/Website/mutexTry.php
index a5c422e..584c4cc 100644
--- a/Under-Testing/Website/mutexTry.php
+++ b/Under-Testing/Website/mutexTry.php
@@ -198,7 +198,6 @@ if ($locking == '1') //1 means nobody is on the website
{
$LSFKS = 0;
}
-
}
elseif($testStatus == '999')
{
@@ -270,7 +269,7 @@ if ($locking == '1') //1 means nobody is on the website
{
if ($GSMRZ1 != 1)
{
- $GSMRZ1 = 0;
+ $GSMRZ1 = 0;
}
}
}
@@ -376,7 +375,10 @@ if ($locking == '1') //1 means nobody is on the website
}
elseif($testStatus == '999' || $testStatus == '801')
{
- $GSMRZ2 = 0; //where is nanoBTS1
+ if ($GSMRZ2 != 1)
+ {
+ $GSMRZ2 = 0;
+ }
if ($NANOBTS1P != 1)
{
$NANOBTS1P= 2;
@@ -397,7 +399,7 @@ if ($locking == '1') //1 means nobody is on the website
elseif($testStatus == '486')
{
- if ($GSMRZ3 != 1)
+ if ($GSMRZ3 != 1)
{
$GSMRZ3 = -1;
}
@@ -471,14 +473,17 @@ if ($locking == '1') //1 means nobody is on the website
}
elseif($testStatus == '999' || $testStatus == '801')
{
- $GSMRZ3 = 0; //where is nanoBTS1
+ if ($GSMRZ3 != 1)
+ {
+ $GSMRZ3 = 0;
+ }
if ($NANOBTS1P != 1)
{
$NANOBTS2P= 2;
}
}
- }//
+ }
}
if($callFrom == 'GSMEXT.O2' || $callTo == 'GSMEXT.O2')
@@ -807,7 +812,10 @@ if ($locking == '1') //1 means nobody is on the website
elseif ($testStatus == '500')
{
$LANDLINEP = 0;
- $LANDLINE = 0;
+ if ($LANDLINE != 1)
+ {
+ $LANDLINE = 0;
+ }
}
elseif($testStatus == '998' || $testStatus == '802')
{
@@ -839,7 +847,10 @@ if ($locking == '1') //1 means nobody is on the website
elseif ($testStatus == '501')
{
$LANDLINEP = 0;
- $LANDLINE = 0;
+ if ($LANDLINE != 1)
+ {
+ $LANDLINE = 0;
+ }
}
elseif($testStatus == '998')
{
@@ -890,11 +901,17 @@ if ($locking == '1') //1 means nobody is on the website
elseif ($testStatus == '500')
{
$UNISIPP = 0;
- $UNISIP = 0;
+ if ($UNISIP != 1)
+ {
+ $UNISIP = 0;
+ }
}
elseif($testStatus == '998' || $testStatus == '802')
{
- $UNISIP = 1;
+ if ($UNISIP != 1)
+ {
+ $UNISIP = 0;
+ }
$UNISIPP = 1;
}
}