Skip to content

Commit 21f2463

Browse files
201341yonghong-song
authored andcommitted
type error
1 parent 912d357 commit 21f2463

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/dbslower.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def print_event(cpu, data, size):
208208
event = bpf["events"].event(data)
209209
print("%-14.6f %-6d %8.3f %s" % (
210210
float(event.timestamp - start) / 1000000000,
211-
event.pid, float(event.delta) / 1000000, event.query))
211+
event.pid, float(event.duration) / 1000000, event.query))
212212

213213
if mode.startswith("MYSQL"):
214214
print("Tracing database queries for application %s slower than %d ms..." %

0 commit comments

Comments
 (0)