Commit 7b5a8414 authored by Franco Fichtner's avatar Franco Fichtner

dashboard: improve disk usage section slightly

parent de8b7b2d
......@@ -272,12 +272,13 @@ endif; ?>
<span class="sr-only"></span>
</div>
</div>
<?PHP if (substr(basename($fs['device']), 0, 2) == "md") {
<?PHP if (substr(basename($fs['device']), 0, 5) == "tmpfs") {
$fs['type'] .= " in RAM";
} ?>
<?PHP echo "{$fs['mountpoint']} ({$fs['type']})";?>: <span id="diskusagemeter<?php echo $d++ ?>"><?= $fs['percent_used'].'%'; ?></span> used <?PHP echo $fs['used_size'] ."/". $fs['total_size'];?>
<br />
<?PHP
<?PHP echo "{$fs['mountpoint']} ({$fs['type']})";?>: <span id="diskusagemeter<?php echo $d++ ?>"><?= $fs['percent_used'].'%'; ?></span> used <?PHP echo $fs['used_size'] ."/". $fs['total_size'];
if ($d != count($filesystems)) {
echo '<br/><br/>';
}
endforeach; ?>
</td>
</tr>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment