mirror of
https://github.com/wg/wrk
synced 2025-01-24 04:33:09 +08:00
ensure connection structs are zeroed
This commit is contained in:
parent
205a1960c8
commit
0c64376d09
@ -231,7 +231,7 @@ void *thread_main(void *arg) {
|
|||||||
thread *thread = arg;
|
thread *thread = arg;
|
||||||
aeEventLoop *loop = thread->loop;
|
aeEventLoop *loop = thread->loop;
|
||||||
|
|
||||||
thread->cs = zmalloc(thread->connections * sizeof(connection));
|
thread->cs = zcalloc(thread->connections * sizeof(connection));
|
||||||
tinymt64_init(&thread->rand, time_us());
|
tinymt64_init(&thread->rand, time_us());
|
||||||
thread->latency = stats_alloc(100000);
|
thread->latency = stats_alloc(100000);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user