diff --git a/persistit/core/src/main/java/com/persistit/JournalManagerBench.java b/persistit/core/src/main/java/com/persistit/JournalManagerBench.java index 958e73353a..549e81b83a 100644 --- a/persistit/core/src/main/java/com/persistit/JournalManagerBench.java +++ b/persistit/core/src/main/java/com/persistit/JournalManagerBench.java @@ -1,5 +1,6 @@ /** * Copyright 2012 Akiban Technologies, Inc. + * Portions Copyrighted 2026 3A Systems, LLC. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -87,12 +88,12 @@ private JournalManagerBench(final String[] args) throws Exception { private void runTest() throws Exception { file = new File(ap.getStringValue("datapath"), "JManBench_TestFile"); fc = new RandomAccessFile(file, "rw").getChannel(); - preallocateFile(ap.getIntValue("prealloc") * 1024 * 1024); + preallocateFile(ap.getIntValue("prealloc") * 1024L * 1024); for (int i = 0; i < bytes.length; i++) { bytes[i] = (byte) ('-'); } final int align = ap.getIntValue("align"); - final long extension = ap.getIntValue("extension") * 1024 * 1024; + final long extension = ap.getIntValue("extension") * 1024L * 1024; final long start = System.nanoTime(); final long expires = start + ap.getIntValue("duration") * NS_PER_S; diff --git a/persistit/examples/SimpleTransaction/SimpleTransaction.java b/persistit/examples/SimpleTransaction/SimpleTransaction.java index becd7cd77f..b28758814a 100644 --- a/persistit/examples/SimpleTransaction/SimpleTransaction.java +++ b/persistit/examples/SimpleTransaction/SimpleTransaction.java @@ -1,5 +1,6 @@ /** * Copyright 2005-2012 Akiban Technologies, Inc. + * Portions Copyrighted 2026 3A Systems, LLC. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -104,7 +105,7 @@ public static void main(String[] args) throws Exception { System.out.println("Completed transactions: " + _committedTransactionCount); System.out.println("Failed transactions: " + _failedTransactionCount); System.out.println("Retried transactions: " + _rolledBackTransactionCount); - System.out.println("Average completed transactions rate: " + (_committedTransactionCount * 1000 / time) + System.out.println("Average completed transactions rate: " + (_committedTransactionCount * 1000L / time) + " per second"); int endingBalance = balance(accountEx); diff --git a/persistit/ui/src/main/java/com/persistit/ui/AdminUI.java b/persistit/ui/src/main/java/com/persistit/ui/AdminUI.java index 5a47719ae6..e3786ff498 100644 --- a/persistit/ui/src/main/java/com/persistit/ui/AdminUI.java +++ b/persistit/ui/src/main/java/com/persistit/ui/AdminUI.java @@ -1,5 +1,6 @@ /** * Copyright 2005-2012 Akiban Technologies, Inc. + * Portions Copyrighted 2026 3A Systems, LLC. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -1285,7 +1286,7 @@ public void run() { if (interval >= 0) _refreshInterval = interval; if (_refreshInterval > 0) { - _refreshTimer.schedule(_refreshTimerTask, 0, _refreshInterval * 1000); + _refreshTimer.schedule(_refreshTimerTask, 0, _refreshInterval * 1000L); } else { _refreshTimer.schedule(_refreshTimerTask, 0); }