Merge branch 'ent-2709-i6079-Real-time-graphs-de-IfOperStatus-no-muestran-nada' into 'develop'

Fixed booleans realtime graphs

See merge request artica/pandorafms!1866
This commit is contained in:
vgilc 2018-10-25 10:35:04 +02:00
commit 9cc08709dd
1 changed files with 9 additions and 0 deletions

View File

@ -77,6 +77,15 @@ switch($graph) {
if (count($data_array) > 1) {
$data = $data_array[1];
}
// Redefine boolean data
switch ($data) {
case "up(1)":
$data = 1;
break;
case "down(0)":
$data = 0;
break;
}
}
}
break;