diff --git a/Changes b/Changes index d1990918..cfc3d6db 100644 --- a/Changes +++ b/Changes @@ -1,3 +1,14 @@ +2.038001 - 2018-01-02 + + [ENHANCEMENTS] + + * Better tooltip for netmap items + * Change to color10 set in netmap + + [BUG FIXES] + + * Allow statistics to be run on an empty database + 2.038000 - 2017-12-31 [NEW FEATURES] diff --git a/lib/App/Netdisco/Util/Statistics.pm b/lib/App/Netdisco/Util/Statistics.pm index 23966cd1..2e4e4d9f 100644 --- a/lib/App/Netdisco/Util/Statistics.pm +++ b/lib/App/Netdisco/Util/Statistics.pm @@ -47,7 +47,10 @@ sub update_stats { device_ip_count => $schema->resultset('DeviceIp')->count_rs->as_query, device_link_count => - $schema->resultset('Virtual::DeviceLinks')->get_column('aggports')->sum_rs->as_query, + $schema->resultset('Virtual::DeviceLinks')->search(undef, { + select => [ { coalesce => [ { sum => 'aggports' }, 0 ] } ], + as => ['totlinks'], + })->get_column('totlinks')->as_query, device_port_count => $schema->resultset('DevicePort')->count_rs->as_query, device_port_up_count =>