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


Ignore:
Timestamp:
11/02/17 16:24:13 (7 years ago)
Author:
Kris Deugau
Message:

/trunk

Add IP count and percent-free to the heading and showsubs layout 2 by request

File:
1 edited

Legend:

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

    r906 r913  
    430430  # Common elements
    431431  my $pinfo = getBlockData($ip_dbh, $webvar{parent});
     432  $page->param(blockpctfree => sprintf("%0.1f", $pinfo->{nfree}/2**(32-$pinfo->{masklen}) * 100 ) );
    432433
    433434##fixme:  do we add a wrapper to not show the edit link for master blocks?
     
    453454  my $cidr = new NetAddr::IP $poolinfo->{block};
    454455  $page->param(vlan => $poolinfo->{vlan});
     456  $page->param(poolpctfree => sprintf("%0.1f", $poolinfo->{nfree}/2**(32-$poolinfo->{masklen}) * 100 ) );
    455457
    456458  # Tree navigation
Note: See TracChangeset for help on using the changeset viewer.