diff options
| author | David Phillips <dbphillipsnz@gmail.com> | 2016-04-22 19:12:30 +1200 | 
|---|---|---|
| committer | David Phillips <dbphillipsnz@gmail.com> | 2016-04-22 19:12:30 +1200 | 
| commit | 48afaed1c5bf9b921ffde00fd105658bec539fbf (patch) | |
| tree | faed52f04359bfed67c7474b43c9f1d8e3519812 | |
| parent | e81bb0377064e9bad5808c20c17be4019accbee2 (diff) | |
| download | fractal-gen-48afaed1c5bf9b921ffde00fd105658bec539fbf.tar.xz | |
Fix float arguments, fix -T argument
| -rw-r--r-- | fractal-gen.c | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/fractal-gen.c b/fractal-gen.c index 855017e..9ceef5d 100644 --- a/fractal-gen.c +++ b/fractal-gen.c @@ -176,15 +176,15 @@ int parse_args(int argc, char **argv)  	if (argc <= 1)  		return 1; -	while ( (opt = getopt(argc, argv, "s:i:e:c:t:N:T")) != -1 ) +	while ( (opt = getopt(argc, argv, "s:i:e:c:t:N:T:")) != -1 )  	{  		switch (opt)  		{  			case 's': size = atoi(optarg); break;  			case 'i': iterat = atoi(optarg); break; -			case 'e': power = atoi(optarg); break; +			case 'e': power = atof(optarg); break;  			case 'c': cores = atoi(optarg); break; -			case 't': thread_mult = atoi(optarg); break; +			case 't': thread_mult = atof(optarg); break;  			case 'N': clust_id = atoi(optarg); break;  			case 'T': clust_total = atoi(optarg); break;  			/* redundant case for '?', but explicitness is best */ | 
