Skip to content

Commit 5ac316a

Browse files
committed
Fix examples/binops_demo.py syntax
1 parent 7a99d21 commit 5ac316a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/binops_demo.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@ def last() -> HashMap:
2121
@section("tracepoint/syscalls/sys_enter_execve")
2222
def do_trace(ctx: c_void_p) -> c_int64:
2323
key = 0
24-
tsp = last().lookup(key)
24+
tsp = last.lookup(key)
2525
if tsp:
2626
kt = ktime()
2727
delta = kt - tsp
2828
if delta < 1000000000:
2929
time_ms = delta // 1000000
3030
print(f"Execve syscall entered within last second, last {time_ms} ms ago")
31-
last().delete(key)
31+
last.delete(key)
3232
else:
3333
kt = ktime()
34-
last().update(key, kt)
34+
last.update(key, kt)
3535
return c_int64(0)
3636

3737

0 commit comments

Comments
 (0)