Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion persistit/examples/SimpleTransaction/SimpleTransaction.java
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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);
Expand Down
3 changes: 2 additions & 1 deletion persistit/ui/src/main/java/com/persistit/ui/AdminUI.java
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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);
}
Expand Down
Loading