Changeset 194 for branches/stable


Ignore:
Timestamp:
03/10/05 17:13:59 (19 years ago)
Author:
Kris Deugau
Message:

/branches/stable

Fix some potentially confusing display information in the master
list and routed blocks lists. Those displays should NOT include
container blocks in their freeblocks information.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/cgi-bin/main.cgi

    r192 r194  
    416416
    417417  # Count the free blocks.
    418   $sth = $ip_dbh->prepare("select count(*) from freeblocks where cidr <<= ?");
     418  $sth = $ip_dbh->prepare("select count(*) from freeblocks where cidr <<= ? and ".
     419        "(routed='y' or routed='n')");
    419420  foreach my $master (@masterblocks) {
    420421    $sth->execute("$master");
     
    424425
    425426  # Find the largest free block in each master
    426   $sth = $ip_dbh->prepare("select maskbits from freeblocks where cidr <<= ? order by maskbits limit 1");
     427  $sth = $ip_dbh->prepare("select maskbits from freeblocks where cidr <<= ? and ".
     428        "(routed='y' or routed='n') order by maskbits limit 1");
    427429  foreach my $master (@masterblocks) {
    428430    $sth->execute("$master");
     
    498500
    499501    # Count the free blocks.
    500     $sth = $ip_dbh->prepare("select count(*) from freeblocks where cidr <<= ?");
     502    $sth = $ip_dbh->prepare("select count(*) from freeblocks where cidr <<= ? and ".
     503        "(routed='y' or routed='n')");
    501504    foreach my $master (@localmasters) {
    502505      $sth->execute("$master");
     
    506509
    507510    # Get the size of the largest free block
    508     $sth = $ip_dbh->prepare("select maskbits from freeblocks where cidr <<= ? order by maskbits limit 1");
     511    $sth = $ip_dbh->prepare("select maskbits from freeblocks where cidr <<= ? and ".
     512        "(routed='y' or routed='n') order by maskbits limit 1");
    509513    foreach my $master (@localmasters) {
    510514      $sth->execute("$master");
Note: See TracChangeset for help on using the changeset viewer.