mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 09:15:15 +02:00
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:
commit
9cc08709dd
@ -77,6 +77,15 @@ switch($graph) {
|
|||||||
if (count($data_array) > 1) {
|
if (count($data_array) > 1) {
|
||||||
$data = $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;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user