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

modded resourceusage #724

Merged
merged 1 commit into from
Oct 25, 2019
Merged

Conversation

madepolli
Copy link
Contributor

Modified resourceusage to allow for combined cpu usage (useful on machines with lots of cores and threads)

Change includes the config (see below). The variable cpuCombined bool is new - default is false, which makes the default behaviour equal to the old behaviour, i.e., not combined stats. Setting it to true, combines the core stats into one, and changes its title to 'CPU'.

There is also a change in widget Refresh function, which makes it flicker-free for me (it would flicker before, but I don't know the reasoning for why was it setup as it was before, so it might break something else).

Example of config:

    resourceusage:
      enabled: true
      position:
        top: 0 
        left: 0
        height: 1
        width: 1
      refreshInterval: 1
      cpuCombined: true

@senorprogrammer
Copy link
Collaborator

This is great, thanks

@senorprogrammer senorprogrammer merged commit 5950135 into wtfutil:master Oct 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants