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

Commit 376ebda

Browse files
committed
Merge pull request #49 from JesperWisborgKrogh/dev/20150223_ps_trace_thread
Fix wrong calculation of how long time the procedure has been running
2 parents a2e63b6 + 1efb4b3 commit 376ebda

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)