Fix division by zero

If the query failed instantly it would crash the test.
This commit is contained in:
Markus Mäkelä
2020-11-17 10:08:15 +02:00
parent 558bd9279b
commit 4545b8f798

View File

@ -54,7 +54,7 @@ void tune_rowcount(TestConnections& test)
remove(filename.c_str());
int orig = ROWCOUNT;
ROWCOUNT = orig / dur.count() * 10000;
ROWCOUNT = orig / (dur.count() + 1) * 10000;
test.tprintf("Loading %d rows took %ld ms, setting row count to %d",
orig,
dur.count(),