Skip to content
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

get info M1 or M2 #660

Merged
merged 5 commits into from
Sep 7, 2022
Merged

get info M1 or M2 #660

merged 5 commits into from
Sep 7, 2022

Conversation

JohaoRosasRosillo
Copy link
Contributor

No description provided.


exports.is_m1_or_m2 = function(){///////////////////////when it is M1, it returns the value in Ghz, it is the reason because it is multiplied by 1000
var cpus = os.cpus();
var model = cpus[0].model.trim();
Copy link
Contributor

Choose a reason for hiding this comment

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

you have double space between var and model.

@SoraKenji SoraKenji merged commit 3e1a6ba into master Sep 7, 2022
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