mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
parent
280722ea70
commit
a3a077c348
1 changed files with 3 additions and 1 deletions
|
@ -297,7 +297,9 @@ public class QueueTest {
|
|||
// 10 tests of random queue sizes
|
||||
for (int loop = 0; loop < 10; loop++) {
|
||||
int page_count = random.nextInt(10000) + 1;
|
||||
int digits = new Double(Math.ceil(Math.log10(page_count))).intValue();
|
||||
|
||||
// String format call below needs to at least print one digit
|
||||
final int digits = Math.max((int) Math.ceil(Math.log10(page_count)), 1);
|
||||
|
||||
// create a queue with a single element per page
|
||||
List<Queueable> elements = new ArrayList<>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue