[#266] netdisco subnet utiiization report div by zero (V. Puchkov)
This commit is contained in:
@@ -15,12 +15,13 @@
|
|||||||
* Mention netdisco-users mail list in docs (C. Goldsmith)
|
* Mention netdisco-users mail list in docs (C. Goldsmith)
|
||||||
* Avoid pathological delete mac for millions of nodes (S. Xu)
|
* Avoid pathological delete mac for millions of nodes (S. Xu)
|
||||||
* Documentation fixes (S. Elipot)
|
* Documentation fixes (S. Elipot)
|
||||||
* [#265] Default sort for Nodes discovered through LLDP/CDP
|
* [#265] Default sort for Nodes discovered through LLDP/CDP (mzac)
|
||||||
|
|
||||||
[BUG FIXES]
|
[BUG FIXES]
|
||||||
|
|
||||||
* Improve security of REMOTE_USER handling (B. Marshall)
|
* Improve security of REMOTE_USER handling (B. Marshall)
|
||||||
* portcontrol and power jobs using device instance instead of IP address
|
* portcontrol and power jobs using device instance instead of IP address
|
||||||
|
* [#266] netdisco subnet utiiization report div by zero (V. Puchkov)
|
||||||
|
|
||||||
2.033006 - 2016-03-20
|
2.033006 - 2016-03-20
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ __PACKAGE__->result_source_instance->view_definition(<<'ENDSQL');
|
|||||||
SELECT net as subnet,
|
SELECT net as subnet,
|
||||||
power(2, (32 - masklen(net))) as subnet_size,
|
power(2, (32 - masklen(net))) as subnet_size,
|
||||||
count(DISTINCT ip) as active,
|
count(DISTINCT ip) as active,
|
||||||
round(100 * count(DISTINCT ip) / (power(2, (32 - masklen(net))) - 2)) as percent
|
round(100 * count(DISTINCT ip) / (power(2, (32 - masklen(net))))) as percent
|
||||||
FROM (
|
FROM (
|
||||||
SELECT DISTINCT net, ni.ip
|
SELECT DISTINCT net, ni.ip
|
||||||
FROM subnets s1, node_ip ni
|
FROM subnets s1, node_ip ni
|
||||||
|
|||||||
Reference in New Issue
Block a user