Fixed booleans realtime graphs

This commit is contained in:
fermin831 2018-10-17 19:20:22 +02:00
parent fd53704dc0
commit e7663fc5f0
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;