Consistency updates
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<tr>
|
||||
<td class="head" colspan="2"><?php echo $ctype.' '._('Volumes'); ?></td>
|
||||
</tr>
|
||||
<?php if ($o->vols_bybtype($ctype)) { ?>
|
||||
<?php if ($o->vols_byctype($ctype)) { ?>
|
||||
<tr>
|
||||
<td class="spacer"> </td>
|
||||
</tr>
|
||||
@@ -23,9 +23,18 @@
|
||||
<td class="right">FS</td>
|
||||
<td class="right">Nodes</td>
|
||||
</tr>
|
||||
<?php $i=0; foreach ($o->stgpools_bybtype($ctype) as $spo) { ?>
|
||||
<tr class="subhead"><td colspan="10"><?php printf('%s: Reclaim: %s%%, Scratch Usage: %s/%s, Device Type: %s',$spo->STGPOOL_NAME,$spo->RECLAIM,$spo->NUMSCRATCHUSED,$spo->MAXSCRATCH,$spo->DEVCLASSES->DEVTYPE); ?></td></tr>
|
||||
<?php foreach ($o->vols_bypoolbybtype($spo->STGPOOL_NAME,$ctype) as $vuo) {
|
||||
<?php $i=0; foreach ($o->stgpools_bybtype($btype) as $spo) { ?>
|
||||
<tr class="subhead">
|
||||
<td colspan="10">
|
||||
<?php
|
||||
if ($spo->DEVCLASS == 'DISK')
|
||||
printf('%s: Utilised: %s%%, Device Type: %s',$spo->STGPOOL_NAME,$spo->PCT_UTILIZED,$spo->DEVCLASS);
|
||||
else
|
||||
printf('%s: Reclaim: %s%%, Scratch Usage: %s/%s, Device Type: %s',$spo->STGPOOL_NAME,$spo->RECLAIM,$spo->NUMSCRATCHUSED,$spo->MAXSCRATCH,$spo->DEVCLASSES->DEVTYPE);
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php foreach ($o->vols_bypoolbyctype($spo->STGPOOL_NAME,$ctype) as $vuo) {
|
||||
$vo = $vuo->VOLUME; ?>
|
||||
<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
|
||||
<td class="data"><?php echo HTML::anchor('volume/detail/'.base64_encode($vo->VOLUME_NAME),$vo->display('VOLUME_NAME')); ?></td>
|
||||
@@ -36,8 +45,8 @@
|
||||
<td class="data-right"><?php printf('%s/%s',$vo->READ_ERRORS,$vo->WRITE_ERRORS); ?></td>
|
||||
<td class="data-right"><?php echo $vo->display('PCT_UTILIZED'); ?></td>
|
||||
<td class="data-right"><?php echo $vo->display('PCT_RECLAIM'); ?></td>
|
||||
<td class="data-right"><?php echo count($vo->fs_bybtype($ctype)); ?></td>
|
||||
<td class="data-right"><?php echo count($vo->nodes_bybtype($ctype)); ?></td>
|
||||
<td class="data-right"><?php echo count($vo->fs_byctype($ctype)); ?></td>
|
||||
<td class="data-right"><?php echo count($vo->nodes_byctype($ctype)); ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
Reference in New Issue
Block a user