mirror of
https://github.com/varun-r-mallya/Python-BPF.git
synced 2025-12-31 21:06:25 +00:00
Add else
This commit is contained in:
@ -30,11 +30,11 @@ def hello_again(ctx: c_void_p) -> c_int64:
|
||||
# if delta < 1000000000:
|
||||
# print("execve called within last second")
|
||||
# last().delete(key)
|
||||
x = False
|
||||
x = True
|
||||
x = False
|
||||
if x:
|
||||
print("we prevailed")
|
||||
if x:
|
||||
else:
|
||||
print("we did not prevail")
|
||||
ts = ktime()
|
||||
last().update(key, ts)
|
||||
@ -52,4 +52,5 @@ def hello_again(ctx: c_void_p) -> c_int64:
|
||||
def LICENSE() -> str:
|
||||
return "GPL"
|
||||
|
||||
|
||||
compile()
|
||||
|
||||
Reference in New Issue
Block a user