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

Glances #807

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Glances #807

wants to merge 2 commits into from

Conversation

mq1
Copy link

@mq1 mq1 commented Sep 21, 2024

Description

Adds basic CPU and Memory monitor widgets using a Glances server

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • I've read & comply with the contributing guidelines
  • I have tested my code for new features & regressions on both mobile & desktop devices, using the latest version of major browsers.
  • I have made corresponding changes to the documentation (README.md).
  • I've checked my modifications for any breaking changes, especially in the config.yml file

I just noticed my IDE formatted the customservices.md automatically, do these changes need to be reverted?

Copy link
Owner

@bastienwirtz bastienwirtz left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution @mq1! A glance custom card will be a very nice addition.

}
})
.catch((e) => {
this.percentage = "Error fetching data";
Copy link
Owner

Choose a reason for hiding this comment

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

It would be great to have that in a separate error var.

Comment on lines +37 to +42
if (this.item.stat === "cpu") {
this.percentage = response.total;
}
if (this.item.stat === "mem") {
this.percentage = response.percent;
}
Copy link
Owner

Choose a reason for hiding this comment

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

It could be great is stat was in fact stats and accepts a comma separated list of stat so we could display multiple stat in one card. What do you think?

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