Changeset 231 for trunk/cgi-bin/main.cgi
- Timestamp:
- 04/15/05 17:10:52 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/main.cgi
r228 r231 420 420 421 421 # Count the free blocks. 422 $sth = $ip_dbh->prepare("select count(*) from freeblocks where cidr <<= ?"); 422 $sth = $ip_dbh->prepare("select count(*) from freeblocks where cidr <<= ? and ". 423 "(routed='y' or routed='n')"); 423 424 foreach my $master (@masterblocks) { 424 425 $sth->execute("$master"); … … 428 429 429 430 # Find the largest free block in each master 430 $sth = $ip_dbh->prepare("select maskbits from freeblocks where cidr <<= ? order by maskbits limit 1"); 431 $sth = $ip_dbh->prepare("select maskbits from freeblocks where cidr <<= ? and ". 432 "(routed='y' or routed='n') order by maskbits limit 1"); 431 433 foreach my $master (@masterblocks) { 432 434 $sth->execute("$master"); … … 502 504 503 505 # Count the free blocks. 504 $sth = $ip_dbh->prepare("select count(*) from freeblocks where cidr <<= ?"); 506 $sth = $ip_dbh->prepare("select count(*) from freeblocks where cidr <<= ? and ". 507 "(routed='y' or routed='n')"); 505 508 foreach my $master (@localmasters) { 506 509 $sth->execute("$master"); … … 510 513 511 514 # Get the size of the largest free block 512 $sth = $ip_dbh->prepare("select maskbits from freeblocks where cidr <<= ? order by maskbits limit 1"); 515 $sth = $ip_dbh->prepare("select maskbits from freeblocks where cidr <<= ? and ". 516 "(routed='y' or routed='n') order by maskbits limit 1"); 513 517 foreach my $master (@localmasters) { 514 518 $sth->execute("$master");
Note:
See TracChangeset
for help on using the changeset viewer.