Files
server_status/components/nvme.php
T

34 lines
848 B
PHP

<?php
function nvme_data($data)
{
$health = $data->nvme_smart_health_information_log; ?>
<h2>SMART data</h2>
<table>
<thead>
<tr>
<th>Property</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>Data Units Read</td>
<td><?= number_format($health->data_units_read) .
" (" .
data_unit($health->data_units_read) .
")" ?></td>
</tr>
<tr>
<td>Data Units Written</td>
<td><?= number_format($health->data_units_written) .
" (" .
data_unit($health->data_units_written) .
")" ?></td>
</tr>
</tbody>
</table>
<?php
} ?>