Changeset 194
- Timestamp:
- 03/10/05 17:13:59 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/cgi-bin/main.cgi
r192 r194 416 416 417 417 # 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')"); 419 420 foreach my $master (@masterblocks) { 420 421 $sth->execute("$master"); … … 424 425 425 426 # 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"); 427 429 foreach my $master (@masterblocks) { 428 430 $sth->execute("$master"); … … 498 500 499 501 # 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')"); 501 504 foreach my $master (@localmasters) { 502 505 $sth->execute("$master"); … … 506 509 507 510 # 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"); 509 513 foreach my $master (@localmasters) { 510 514 $sth->execute("$master");
Note:
See TracChangeset
for help on using the changeset viewer.