more fixings (thanks sid3windr!)

git-svn-id: http://www.observium.org/svn/observer/trunk@555 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2009-12-27 08:07:12 +00:00
parent f3df610911
commit 4c4544a6e3
2 changed files with 5 additions and 5 deletions

View File

@@ -120,8 +120,8 @@ $config['allow_entity_sensor']['specialEnum'] = 1;
### Mountpoints to ignore
$config['ignore_mount'] = array("/kern", "/mnt/cdrom", "/dev", "/dev/pts", "/proc/bus/usb");
$config['ignore_mount_regex'] = array();
$config['ignore_mount_string'] = array();
$config['ignore_mount_regexp'] = array();
$config['ignore_mount_string'] = array("/.*\/dev\/?$/");
### Style Options

View File

@@ -21,10 +21,10 @@ while($drive = mysql_fetch_array($query)) {
if(is_integer($row/2)) { $row_colour = $list_colour_a; } else { $row_colour = $list_colour_b; }
$total = $drive['hrStorageSize'] * $drive['hrStorageAllocationUnits'];
$used = $drive['hrStorageUsed'] * $drive['hrStorageAllocationUnits'];
$free = $total - $drive['hrStorageUsed'] * $drive['hrStorageAllocationUnits'];
$perc = round($drive['storage_perc'], 0);
$total = formatStorage($total);
$used = formatStorage($used);
$free = formatStorage($free);
$fs_url = "?page=device&id=".$device['device_id']."&section=dev-storage";
@@ -36,7 +36,7 @@ while($drive = mysql_fetch_array($query)) {
echo("<tr bgcolor='$row_colour'><th><a href='$fs_url' $fs_popup>" . $drive['hrStorageDescr'] . "</a></td><td>
<a href='$fs_url' $fs_popup><img src='percentage.php?per=" . $perc . "&width=350'></a>
</td><td style='font-weight: bold; color: $drv_colour'>" . $perc . "%</td><td>" . $total . "</td><td>" . $used . "</td><td></td></tr>");
</td><td style='font-weight: bold; color: $drv_colour'>" . $perc . "%</td><td>" . $total . "</td><td>" . $free . "</td><td></td></tr>");
$graph_type = "hrstorage";