This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
phptsmadmin/application/views/node/stats.php
2012-12-13 15:46:25 +11:00

31 lines
954 B
PHP

<!-- $o = ORM::factory('NODE') -->
<table class="box-full">
<tr>
<td class="head" colspan="2">Node Stats</td>
</tr>
<tr>
<td class="spacer">&nbsp;</td>
</tr>
<tr>
<td style="width: 40%;">Files Protected</td>
<td style="width: 60%;" class="data"><?php echo $o->file_byptype('PRIMARY'); ?></td>
</tr>
<tr>
<td>Files on Copy Media</td>
<td class="data"><?php echo $o->file_byptype('COPY'); ?> (<?php echo $o->file_mediaprotection(); ?>%)</td<>
</tr>
<tr>
<td>Active Files on the Node</td>
<td class="data"><?php echo $o->file_active(); ?></td<>
</tr>
<tr>
<td>Data on Node</td>
<td class="data"><?php printf('%s/%s (%s%%)',$o->fs_data(),$o->fs_capacity(),$o->fs_utilisation()); ?></td>
</tr>
<tr>
<td>Data in TSM</td>
<td class="data"><?php printf('%s Ratio: %s',$o->fs_logical(),number_format($o->fs_logical()/$o->fs_data(),2)); ?></td>
</tr>
</table>
<?php echo View::factory('node/filespace_stats')->set('o',$o); ?>