mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 12:20:41 +00:00
bugfix: trace
This commit is contained in:
@@ -94,6 +94,7 @@ trace_register(struct trace_pool *p, int session) {
|
||||
if (p->slot[hash]) {
|
||||
p->slot[hash]->prev = t;
|
||||
}
|
||||
p->slot[hash] = t;
|
||||
}
|
||||
|
||||
struct trace_info *
|
||||
@@ -129,6 +130,7 @@ trace_switch(struct trace_pool *p, int session) {
|
||||
if (t->next) {
|
||||
t->next->prev = prev;
|
||||
}
|
||||
clock_gettime(CLOCK_THREAD_CPUTIME_ID, &t->ti);
|
||||
return;
|
||||
}
|
||||
prev = t;
|
||||
|
||||
Reference in New Issue
Block a user