Skip to content

Commit aa3bd82

Browse files
fix format errors
1 parent ec003a2 commit aa3bd82

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

examples/execve.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
from pythonbpf import bpf, map, section, bpfglobal, BPF
2-
from ctypes import c_void_p, c_int64, c_int32, c_uint64
3-
from pythonbpf.helpers import ktime
4-
from pythonbpf.maps import HashMap
51
import time
2+
from ctypes import c_int32, c_int64, c_uint64, c_void_p
3+
4+
from pythonbpf import BPF, bpf, bpfglobal, map, section
5+
from pythonbpf.maps import HashMap
6+
67

78
@bpf
89
@map
@@ -25,7 +26,6 @@ def hello_again(ctx: c_void_p) -> c_int64:
2526
key = 0
2627
tsp = last().lookup(key)
2728
print(tsp)
28-
ts = ktime()
2929
return c_int64(0)
3030

3131

@@ -34,6 +34,7 @@ def hello_again(ctx: c_void_p) -> c_int64:
3434
def LICENSE() -> str:
3535
return "GPL"
3636

37+
3738
b = BPF()
3839
b.load_and_attach()
3940
while True:

0 commit comments

Comments
 (0)