Skip to content

Commit

Permalink
Fix MB computation
Browse files Browse the repository at this point in the history
  • Loading branch information
rasantel committed Nov 21, 2023
1 parent 048f656 commit 96e3c04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/net/schmizz/sshj/ConfigImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public class ConfigImpl
private LoggerFactory loggerFactory;
private boolean verifyHostKeyCertificates = true;
// HF-982: default to 16MB buffers.
private int maxCircularBufferSize = 16 * 1024 * 1026;
private int maxCircularBufferSize = 16 * 1024 * 1024;

@Override
public List<Factory.Named<Cipher>> getCipherFactories() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class RemotePFPerformanceTest {
@Disabled
public void startPF() throws IOException, InterruptedException {
DefaultConfig config = new DefaultConfig();
config.setMaxCircularBufferSize(16 * 1024 * 1026);
config.setMaxCircularBufferSize(16 * 1024 * 1024);
SSHClient client = new SSHClient(config);
client.loadKnownHosts();
client.addHostKeyVerifier("5c:0c:8e:9d:1c:50:a9:ba:a7:05:f6:b1:2b:0b:5f:ba");
Expand Down

0 comments on commit 96e3c04

Please sign in to comment.