Skip to content

Commit

Permalink
fixed counting total number of pairs to compute
Browse files Browse the repository at this point in the history
  • Loading branch information
dannovikov committed Oct 6, 2023
1 parent a5f2e79 commit 58628ed
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file modified SeqRuler.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion modules/gui-app/src/main/java/SNP/SNP.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public void snp(ArrayList<Seq> seqs) {

public void snp_sequential(ArrayList<Seq> seqs) {
//sequential version
long pairs_count = (seqs.size() * (seqs.size() - 1)) / 2;
long pairs_count = ((long) seqs.size() * (seqs.size() - 1)) / 2;
long current_pair = 0;
long startTime = System.nanoTime(), estimatedTime;

Expand Down
2 changes: 1 addition & 1 deletion modules/gui-app/src/main/java/TN93/TN93.java
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public void tn93_parallel(ArrayList<Seq> seqs){
}


long total_pairs_to_compute = (seqs.size() * seqs.size() - seqs.size())/2;
long total_pairs_to_compute = ((long) seqs.size() * seqs.size() - seqs.size())/2;
long current_pair = 0;
long startTime = System.nanoTime(), estimatedTime;

Expand Down

0 comments on commit 58628ed

Please sign in to comment.