Fix division by zero
If the query failed instantly it would crash the test.
This commit is contained in:
@ -54,7 +54,7 @@ void tune_rowcount(TestConnections& test)
|
|||||||
remove(filename.c_str());
|
remove(filename.c_str());
|
||||||
|
|
||||||
int orig = ROWCOUNT;
|
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",
|
test.tprintf("Loading %d rows took %ld ms, setting row count to %d",
|
||||||
orig,
|
orig,
|
||||||
dur.count(),
|
dur.count(),
|
||||||
|
Reference in New Issue
Block a user