diff options
Diffstat (limited to 'web/api')
-rwxr-xr-x | web/api/public/dhcp-summary | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/api/public/dhcp-summary b/web/api/public/dhcp-summary index 18a7f69..5245f34 100755 --- a/web/api/public/dhcp-summary +++ b/web/api/public/dhcp-summary @@ -6,7 +6,7 @@ use nms::web; nms::web::setwhen('2h'); -my $q2 = $nms::web::dbh->prepare("select count(distinct mac) as clients,count(distinct ip) as addresses,count(mac) as acks from dhcp where $nms::web::when;"); +my $q2 = $nms::web::dbh->prepare("select count(distinct data->>'clientmac') as clients from metrics where $nms::web::when;"); $q2->execute(); while (my $ref = $q2->fetchrow_hashref()) { $nms::web::json{'dhcp'} = $ref; |