diff options
author | sinanmohd <sinan@sinanmohd.com> | 2024-07-06 15:24:51 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2024-07-06 15:26:51 +0530 |
commit | 459f114783b9e37f8c44d39802f01976b0129e7b (patch) | |
tree | 34f4a07406e07521b3bc589aefdbb2c4a419fa56 /cmd | |
parent | 46e8c7d6a678a3050a0bde7acef10278a72e8a6f (diff) |
bpf -> usage
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) } |