Skip to content

Fix conditional error in benv script #59

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Conversation

jvican
Copy link
Member

@jvican jvican commented Feb 2, 2018

No description provided.

@@ -139,12 +139,12 @@ function setFrequency() {

local freqs=$(cat /proc/cpuinfo | grep MHz)
local c=$(echo "$freqs" | grep $cpuFrequency.000 | wc -l)
[[ "$c" == "4" ]] ||
[[ "$c" != "4" ]] ||
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it was correct before; if c is 4, we seen all 4 cpus at the correct frequency, so || will not execute err. Or am I missing something?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right Lukas, there was another error in the code (that I modified) that automatically made me think this was the line causing me problems. I didn't even think about what I was modifying, I was in trial and error mode 😄. In my case, this condition is almost always false because I use intel_pstate and it reports results that vary by small digits of Hz, I guess you don't see that because you use acpi_cpufreq.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, we disabled intel_pstate. see some notes here: scala/scala-dev#338

@jvican jvican closed this Feb 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants