|
@@ -20,8 +20,7 @@ $gates = array();
|
20
|
20
|
while($gate = $select->fetch())
|
21
|
21
|
$gates[] = array("id" => intval($gate['id']), "name" => $gate['name'],
|
22
|
22
|
"number" => $gate['number'], "address" => $gate['address'],
|
23
|
|
- "port" => intval($gate['port']), "lastSeen" =>
|
24
|
|
- strtotime($gate['lastSeen']));
|
|
23
|
+ "lastSeen" => intval(time()));
|
25
|
24
|
|
26
|
25
|
echo json_encode(array("timestamp" => time(), "gateTimeout" => $gateTimeout, "gates" => $gates));
|
27
|
26
|
?>
|