startup: Fixed measure_clk to return kHz instead of MHz.
[fw/openocd] / src / jtag / startup.tcl
index 6f9c000d84a4164d2b433b2b4df80db11225577e..f88ef1fa4cd1016f04c5e8e3c131eb64d901d4d8 100644 (file)
@@ -81,8 +81,9 @@ proc srst_asserted {} {
 # measure actual JTAG clock
 proc measure_clk {} {
        set start_time [ms];
-       runtest 10000000; 
-       echo "Running at more than [expr 10000.0 / ([ms]-$start_time)] kHz";
+        set iterations 10000000;
+       runtest $iterations;
+       echo "Running at more than [expr $iterations.0 / ([ms]-$start_time)] kHz";
 }
 
 add_help_text measure_clk "Runs a test to measure the JTAG clk. Useful with RCLK / RTCK."