Changeset 888 for trunk/cgi-bin/main.cgi


Ignore:
Timestamp:
09/01/16 17:01:34 (8 years ago)
Author:
Kris Deugau
Message:

/trunk

Speed up locating the logical free block that a requested new allocation
will live in when using guided allocation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/main.cgi

    r884 r888  
    706706      if ($cidr->masklen() ne $webvar{maskbits}) {
    707707        my $maskbits = $cidr->masklen();
     708        my @subblocks;
    708709        while ($maskbits++ < $webvar{maskbits}) {
    709           $cidr = ($cidr->split($maskbits))[0];
     710          @subblocks = $cidr->split($maskbits);
    710711        }
     712        $cidr = $subblocks[0];
    711713      }
    712714    } # check for freeblocks assignment or IPDB-controlled assignment
Note: See TracChangeset for help on using the changeset viewer.