info ping sur formulaire machine

This commit is contained in:
Jérôme Bousquié
2018-12-04 15:36:56 +01:00
parent 1db332b8e5
commit 580fb25003
2 changed files with 18 additions and 2 deletions

View File

@@ -37,6 +37,7 @@ $ram = $machine[10];
$procSpeed = $machine[11];
$diskSize = $machine[12];
$freeSpace = $machine[13];
$ping_timestamp = $machine[14];
$mac_json = json_encode(array($mac_addr));
@@ -60,6 +61,19 @@ $mac_json = json_encode(array($mac_addr));
sp : <?php echo($os_sp); ?><br/>
version <?php echo($os_version) ?>
</td>
<td>
<?php
if ($mode_ping) {
if (is_null($ping_timestamp)) {
echo("Ping : indisponible<br/>");
}
else {
echo("Dernier ping &nbsp;&nbsp;&nbsp;&nbsp;: $ping_timestamp<br/>");
echo("Heure actuelle : " . date("Y-m-d H:i:s") ."<br/>");
}
}
?>
</td>
</tr>
<tr class="materiel_ligne2">
<td>