mirror of
https://github.com/varun-r-mallya/Python-BPF.git
synced 2025-12-31 21:06:25 +00:00
support nested if
This commit is contained in:
@ -31,11 +31,12 @@ def hello_again(ctx: c_void_p) -> c_int64:
|
||||
# print("execve called within last second")
|
||||
# last().delete(key)
|
||||
x = True
|
||||
x = False
|
||||
y = False
|
||||
if x:
|
||||
print("we prevailed")
|
||||
else:
|
||||
print("we did not prevail")
|
||||
if y:
|
||||
print("we prevailed")
|
||||
else:
|
||||
print("we did not prevail")
|
||||
ts = ktime()
|
||||
last().update(key, ts)
|
||||
keys = 2
|
||||
|
||||
Reference in New Issue
Block a user