aboutsummaryrefslogtreecommitdiffstats
path: root/src/cli/speed.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-03-09 10:08:50 -0500
committerJack Lloyd <[email protected]>2018-03-09 10:08:50 -0500
commit0f871cb0f77cf0113a2f1598007fa9a76f5ece6c (patch)
treeb3dd848f4fa93106a8fb965395c79ba699f7902f /src/cli/speed.cpp
parent4b8cd92d78e7c0cdeca111d528db7d19918c34b3 (diff)
Fix cpu clock ratio [ci skip]
Diffstat (limited to 'src/cli/speed.cpp')
-rw-r--r--src/cli/speed.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cli/speed.cpp b/src/cli/speed.cpp
index e331354c9..a991633e7 100644
--- a/src/cli/speed.cpp
+++ b/src/cli/speed.cpp
@@ -700,6 +700,8 @@ class Speed final : public Command
if(m_clock_cycle_ratio < 0.0 || m_clock_cycle_ratio > 1.0)
throw CLI_Usage_Error("Unlikely CPU clock ratio of " + clock_ratio);
+ m_clock_cycle_ratio = 1.0 / m_clock_cycle_ratio;
+
if(m_clock_speed != 0 && Botan::OS::get_processor_timestamp() != 0)
{
error_output() << "The --cpu-clock-speed option is only intended to be used on "