aboutsummaryrefslogtreecommitdiff
path: root/src/hdfsee.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2013-01-28 15:23:20 +0100
committerThomas White <taw@physics.org>2013-01-28 15:23:20 +0100
commit6f5f23d94db49ccc3881dad0954ff5d4fbb41a93 (patch)
tree4f1c698c55afbf645ffa07925e758e0dfee177b5 /src/hdfsee.c
parent1c82ece5bab805488ac31b3533ee327e030651e0 (diff)
hdfsee: Boost, as given on command line, can be a non-integer
Diffstat (limited to 'src/hdfsee.c')
-rw-r--r--src/hdfsee.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/hdfsee.c b/src/hdfsee.c
index be1f4876..620b684b 100644
--- a/src/hdfsee.c
+++ b/src/hdfsee.c
@@ -111,7 +111,7 @@ int main(int argc, char *argv[])
size_t i;
int nfiles;
char *peaks = NULL;
- int boost = 1;
+ double boost = 1.0;
int binning = 2;
int config_cmfilter = 0;
int config_noisefilter = 0;
@@ -161,10 +161,10 @@ int main(int argc, char *argv[])
break;
case 'i' :
- boost = atoi(optarg);
- if ( boost < 1 ) {
+ boost = atof(optarg);
+ if ( boost <= 0 ) {
ERROR("Intensity boost must be a positive"
- " integer.\n");
+ " number.\n");
return 1;
}
break;