Skip to content

Commit

Permalink
fixed a bug in option -K
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanjue committed Dec 11, 2018
1 parent b14f65c commit 5009cff
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions kbm.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,7 @@ int kbm_main(int argc, char **argv){
case 't': ncpu = atoi(optarg); break;
case 'k': par->ksize = atoi(optarg); opt_flags |= (1 << 1); break;
case 'p': par->psize = atoi(optarg); opt_flags |= (1 << 0); break;
case 'K': fval = atof(optarg);
if(fval > 1) par->kmax = fval;
else par->ktop = fval;
break;
case 'K': fval = atof(optarg); par->kmax = fval; par->ktop = fval - par->kmax; break;
case 'E': par->kmin = atoi(optarg); break;
case 'F': par->use_kf = 1; break;
case 'O': par->min_bin_degree = atoi(optarg); break;
Expand Down

0 comments on commit 5009cff

Please sign in to comment.