aboutsummaryrefslogtreecommitdiffstats
path: root/host/utils/converter_benchmark.cpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2019-07-18 19:11:48 -0700
committerMartin Braun <martin.braun@ettus.com>2019-07-20 14:41:00 -0700
commit7ecb72180728756efda3566a8a7b25e36c690ee7 (patch)
tree1a69d12acdd530da62a5eef789dc962742b65c3c /host/utils/converter_benchmark.cpp
parent3e4ee0758141c405d6c744e077b7d204662914ed (diff)
downloaduhd-7ecb72180728756efda3566a8a7b25e36c690ee7.tar.gz
uhd-7ecb72180728756efda3566a8a7b25e36c690ee7.tar.bz2
uhd-7ecb72180728756efda3566a8a7b25e36c690ee7.zip
utils: converter_benchmark: Fix scaling for sc16->fc32
Diffstat (limited to 'host/utils/converter_benchmark.cpp')
-rw-r--r--host/utils/converter_benchmark.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/utils/converter_benchmark.cpp b/host/utils/converter_benchmark.cpp
index 07aec9170..d00255d0c 100644
--- a/host/utils/converter_benchmark.cpp
+++ b/host/utils/converter_benchmark.cpp
@@ -46,8 +46,8 @@ void configure_conv(
{
if (in_type == "sc16") {
if (out_type == "fc32") {
- std::cout << "Setting scalar to 32767." << std::endl;
- conv->set_scalar(32767.);
+ std::cout << "Setting scalar to 1./32767." << std::endl;
+ conv->set_scalar(1./32767.);
return;
}
}