From 0f871cb0f77cf0113a2f1598007fa9a76f5ece6c Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Fri, 9 Mar 2018 10:08:50 -0500 Subject: Fix cpu clock ratio [ci skip] --- src/cli/speed.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/cli/speed.cpp') 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 " -- cgit v1.2.3