From 459f114783b9e37f8c44d39802f01976b0129e7b Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Sat, 6 Jul 2024 15:24:51 +0530 Subject: bpf -> usage --- cmd/redq/main.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'cmd') diff --git a/cmd/redq/main.go b/cmd/redq/main.go index 4231b52..8807105 100644 --- a/cmd/redq/main.go +++ b/cmd/redq/main.go @@ -6,11 +6,15 @@ import ( "net" "github.com/jackc/pgx/v5" - "sinanmohd.com/redq/bpf" + "sinanmohd.com/redq/usage" "sinanmohd.com/redq/db" ) func main() { + u := &usage.Usage { + Data : make(usage.UsageMap), + } + iface, err := net.InterfaceByName("wlan0") if err != nil { log.Fatalf("lookup network: %s", err) @@ -24,5 +28,5 @@ func main() { defer conn.Close(ctx) queries := db.New(conn) - bpf.Run(iface, queries, ctx) + u.Run(iface, queries, ctx) } -- cgit v1.2.3