echo sprintf("%.0f", get_single_sysctl('hw.physmem') / (1024 * 1024));
?>
 MiB</span>
			</td>
		</tr>
		<?php 
if ($showswap == true) {
    ?>
		<tr>
			<th><?php 
    echo gettext("SWAP usage");
    ?>
</th>
			<td>
				<?php 
    $swapusage = swap_usage();
    ?>
				<div class="progress">
					<div class="progress-bar progress-bar-striped" role="progressbar" aria-valuenow="<?php 
    echo $swapusage;
    ?>
" aria-valuemin="0" aria-valuemax="100" style="width: <?php 
    echo $swapusage;
    ?>
%">
					</div>
				</div>
				<span><?php 
    echo $swapusage;
    ?>
% of <?php 
Пример #2
0
/images/misc/bar_right.gif" height="15" width="5" border="0" align="middle" alt="right bar" />
				&nbsp;
				<input style="border: 0px solid white;" size="30" name="memusagemeter" id="memusagemeter" value="<?php 
echo $memUsage . '%';
?>
" />
			</td>
		</tr>
		<?php 
if ($showswap == true) {
    ?>
		<tr>
			<td width="25%" class="vncellt">SWAP kullanımı</td>
			<td width="75%" class="listr">
				<?php 
    $swapUsage = swap_usage();
    ?>
				<img src="./themes/<?php 
    echo $g['theme'];
    ?>
/images/misc/bar_left.gif" height="15" width="4" border="0" align="middle" alt="left bar" /><img src="./themes/<?php 
    echo $g['theme'];
    ?>
/images/misc/bar_blue.gif" height="15" width="<?php 
    echo $swapUsage;
    ?>
" border="0" align="middle" alt="red bar" /><img src="./themes/<?php 
    echo $g['theme'];
    ?>
/images/misc/bar_gray.gif" height="15" width="<?php 
    echo 100 - $swapUsage;