Increase sort window

This commit is contained in:
Rodrigo Arias 2023-02-16 15:58:56 +01:00 committed by Rodrigo Arias Mallo
parent c6860854b4
commit e3339fef3b
2 changed files with 3 additions and 3 deletions

View File

@ -59,7 +59,7 @@ enum operation_mode { SORT,
static char *tracedir = NULL; static char *tracedir = NULL;
static enum operation_mode operation_mode = SORT; static enum operation_mode operation_mode = SORT;
static const size_t max_look_back = 100000; static const size_t max_look_back = 1000000;
static void static void
ring_reset(struct ring *r) ring_reset(struct ring *r)

View File

@ -49,14 +49,14 @@ main(void)
int64_t t0 = ovni_clock_now(); int64_t t0 = ovni_clock_now();
/* Leave some room to prevent clashes */ /* Leave some room to prevent clashes */
usleep(10000); /* 10000000 ns */ usleep(100000); /* 100000000 ns */
int64_t t1 = ovni_clock_now(); int64_t t1 = ovni_clock_now();
emit("OU[", t1); emit("OU[", t1);
/* Fill the ring buffer */ /* Fill the ring buffer */
long n = 100000 + 10; long n = 1000000 + 10;
err("using n=%ld events\n", n); err("using n=%ld events\n", n);