Use double for sample rate

Fixes #158
This commit is contained in:
Mike Walters
2019-11-02 21:34:12 +00:00
parent cd115c22cf
commit d6115cb458
10 changed files with 18 additions and 17 deletions

View File

@@ -59,8 +59,7 @@ int main(int argc, char *argv[])
if (parser.isSet(rateOption)) {
bool ok;
// Use toDouble just for scientific notation support
int rate = parser.value(rateOption).toDouble(&ok);
auto rate = parser.value(rateOption).toDouble(&ok);
if(!ok) {
fputs("ERROR: could not parse rate\n", stderr);
return 1;