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

Cpu percentage not working in Ubuntu 20.04 #21

Open
smr97 opened this issue Jun 18, 2020 · 5 comments
Open

Cpu percentage not working in Ubuntu 20.04 #21

smr97 opened this issue Jun 18, 2020 · 5 comments

Comments

@smr97
Copy link

smr97 commented Jun 18, 2020

Hi, cpu usage is always at 0.0%. I reduced sampling time to 1 second and ran a build process. This still doesn't change the output.
I also tried to redirect the CPU file to ~/cpu_shit folder (just in case the default temp folder is not working due to a permissions issue). I see no files being written to this folder.
Does anyone experience this issue? I installed via tmp.

@adams-family
Copy link

Hi, I get the following on Debian 10:

image

Is it a bug or do I have something wrong?

My .tmux.conf:

# remap prefix to Control + a
set -g prefix C-a
unbind C-b
bind C-a send-prefix

# force a reload of the config file
unbind r
bind r source-file ~/.tmux.conf

# quick pane cycling
unbind ^A
bind ^A select-pane -t :.+

# enable mouse scroll
set -g mouse on

set-option -g status-position bottom

set -g @plugin 'samoshkin/tmux-plugin-sysstat'

set -g status-right "#{sysstat_cpu} | #{sysstat_mem} | #{sysstat_swap} | #{sysstat_loadavg} | #[fg=cyan]#(echo $USER)#[default]@#H"

# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'

# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run -b '~/.tmux/plugins/tpm/tpm'

@smr97
Copy link
Author

smr97 commented Jun 24, 2020

set -g @plugin 'tmux-plugins/tmux-cpu' this worked for me out of the box ;)

@lucasrangit
Copy link

lucasrangit commented Aug 2, 2020

Same issue on Raspbian GNU/Linux 10 (buster). Blank values for CPU, MEM, SW. load averages show up as non-zero.

$ tmux -V
tmux 2.8
$ lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description:    Raspbian GNU/Linux 10 (buster)
Release:        10
Codename:       buster

CPU and MEM values show up if installed with tmux-config but they don't appear to change. CPU is still at 100% and MEM is at 16%.

@matusbielik
Copy link

matusbielik commented Feb 25, 2021

Also not working on Pop!_OS with latest tmux 😞 Placeholders are replaced by blank values

$ tmux -V
tmux next-3.3

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Pop
Description:	Pop!_OS 20.10
Release:	20.10
Codename:	groovy

too bad, this is exactly what I was looking for!

@samoshkin is there any chance this will be fixed or is this plugin deprecated?

@firemiles
Copy link

I try to add fflush() in script cpu_collect.sh after awk print fix this issue

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

No branches or pull requests

5 participants