summaryrefslogtreecommitdiff
path: root/tune/freq.c
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2003-10-07 01:42:22 +0200
committerKevin Ryde <user42@zip.com.au>2003-10-07 01:42:22 +0200
commit6a87c15e7427f650a213390de839e189cd08e4f1 (patch)
tree5f3fdd775861773cd687c16f6ab3d561d3028f49 /tune/freq.c
parent97648d51e27726c4b24e6529b82a2b3354bfc92f (diff)
downloadgmp-6a87c15e7427f650a213390de839e189cd08e4f1.tar.gz
* tune/freq.c (freq_sysctl_hw_model): Correction to last sscanf change.
Diffstat (limited to 'tune/freq.c')
-rw-r--r--tune/freq.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/tune/freq.c b/tune/freq.c
index b833aaa20..a2838ea54 100644
--- a/tune/freq.c
+++ b/tune/freq.c
@@ -307,14 +307,14 @@ freq_sysctl_hw_model (int help)
}
end = 0;
- if (sscanf (p, "%u MHz%n", &val, &end) != 1 && end != 0)
- return 0;
-
- speed_cycletime = 1e-6 / (double) val;
- if (speed_option_verbose)
- printf ("Using sysctl() hw.model %u for cycle time %.3g\n",
- val, speed_cycletime);
- return 1;
+ if (sscanf (p, "%u MHz%n", &val, &end) == 1 && end != 0)
+ {
+ speed_cycletime = 1e-6 / (double) val;
+ if (speed_option_verbose)
+ printf ("Using sysctl() hw.model %u for cycle time %.3g\n",
+ val, speed_cycletime);
+ return 1;
+ }
}
#endif
return 0;