Skip to content

Commit

Permalink
[SYS] Fix frequency units (#601)
Browse files Browse the repository at this point in the history
  • Loading branch information
noelchalmers authored Jul 12, 2022
1 parent 6289743 commit 7447dd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/occa/internal/utils/sys.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ namespace occa {
const float frequency = parseFloat(
getSystemInfoField(systemInfo, "CPU max MHz")
);
return (udim_t) (frequency * 1e3);
return (udim_t) (frequency * 1e6);

#elif (OCCA_OS == OCCA_MACOS_OS)
const float frequency = parseFloat(
Expand Down

0 comments on commit 7447dd6

Please sign in to comment.