diff options
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/redq/main.go | 8 |
1 files changed, 6 insertions, 2 deletions
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) } |