diff options
author | Ole Mathias Aa. Heggem <olemathias.aa.heggem@gmail.com> | 2019-04-15 21:50:59 +0100 |
---|---|---|
committer | olemathias.aa.heggem@gmail.com <root@gondul.tg19.gathering.org> | 2019-04-15 21:50:59 +0100 |
commit | c09d78e79c4cddf31a5b10f3d4fe14fe4d693254 (patch) | |
tree | 6785ecc8e768ee642387d7726012c47343657bfe /web | |
parent | b55e848a3e1613ebe95979fd8ed5b1446d8d1029 (diff) |
dhcp-summary fix
Diffstat (limited to 'web')
-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; |