-
-
Notifications
You must be signed in to change notification settings - Fork 787
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
base: main
Are you sure you want to change the base?
Glances #807
Conversation
There was a problem hiding this 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"; |
There was a problem hiding this comment.
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.
if (this.item.stat === "cpu") { | ||
this.percentage = response.total; | ||
} | ||
if (this.item.stat === "mem") { | ||
this.percentage = response.percent; | ||
} |
There was a problem hiding this comment.
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?
Description
Adds basic CPU and Memory monitor widgets using a Glances server
Type of change
Checklist:
config.yml
fileI just noticed my IDE formatted the customservices.md automatically, do these changes need to be reverted?