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

Feature/windows inspectors #12

Merged
merged 10 commits into from
Mar 19, 2022
Merged

Feature/windows inspectors #12

merged 10 commits into from
Mar 19, 2022

Conversation

deven96
Copy link
Member

@deven96 deven96 commented Mar 18, 2022

No description provided.

@deven96 deven96 requested a review from MeNsaaH March 18, 2022 14:36
inspector/loadavg.go Show resolved Hide resolved
@@ -114,6 +149,10 @@ func NewLoadAvg(driver *driver.Driver, _ ...string) (Inspector, error) {
// Command: `sysctl -n vm.loadavg | awk '{ printf "%.2f %.2f %.2f ", $2, $3, $4 }'`,
Command: `top -l 1 | grep "Load Avg:" | awk '{print $3, $4, $5}'`,
}
} else if details.IsWindows {
loadavg = &LoadAvgWin{
Command: `wmic cpu get loadpercentage`,
Copy link
Member

Choose a reason for hiding this comment

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

This function is available for all win versions?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah

@MeNsaaH MeNsaaH merged commit bacd714 into main Mar 19, 2022
@MeNsaaH MeNsaaH deleted the feature/windows-inspectors branch March 19, 2022 22:50
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