Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit 1efb4b3

Browse files
Fix wrong calculation of how long time the procedure has been running. The old calculation wrongly added the old run time to the current run time.
1 parent 4fdc2f3 commit 1efb4b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

procedures/ps_trace_thread.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ BEGIN
291291
CLOSE c_stack;
292292

293293
SELECT SLEEP(in_interval) INTO @sleep;
294-
SET v_runtime = v_runtime + (UNIX_TIMESTAMP() - v_start);
294+
SET v_runtime = (UNIX_TIMESTAMP() - v_start);
295295
END WHILE;
296296

297297
INSERT INTO tmp_events VALUES (v_min_event_id+1, '}');

0 commit comments

Comments
 (0)