Comments (7)
I'm observing the same issue: the RAM percentage is sometimes repeated.
I'm not using any colouring.
The issue is mostly happening through SSH.
It rarely happens with a local tmux.
20230105-2023-01-05_18.03.19.mp4
Config:
set -ga status-right ' #{cpu_percentage}C #{ram_percentage}M'
Versions:
- tmux 3.3a
- tmux-cpu unstable-2021-12-15
- Terminal emulator: alacritty 0.11.0
- OS: Linux NixOS 22.11
from tmux-cpu.
Debugging further: the issue seems to be happening when launching more than one
tmux window at the same time.
The repeated output can be reproduced with the script alone:
~/src/tmux-cpu master
❯ while true
./scripts/ram_percentage.sh
echo
sleep 0.01
end
The issue appears when launching this loop on multiple terminals at the same
time.
from tmux-cpu.
reset colours:
-set-option -g status-right 'CPU: #{cpu_fg_color}#{cpu_percentage} MEM: #{ram_fg_color}#{ram_percentage}'
+set-option -g status-right 'CPU: #{cpu_fg_color}#{cpu_percentage}#[fg=#aaaaaa] MEM: #{ram_fg_color}#{ram_percentage}'
I'm on Ubuntu 16.04 and 18.04 and haven't noticed doubled up percentages - and I have a whopper:
set -g status-right-length 50
set -g status-right '#{host} #{cpu_bg_color}#{cpu_percentage}#[bg=green][#{ram_bg_color}#{ram_percentage}#[bg=green]](#{cpu_temp_bg_color}#{cpu_temp}#[bg=green]) #{gpu_bg_color}#{gpu_percentage}#[bg=green][#{gram_bg_color}#{gram_percentage}#[bg=green]](#{gpu_temp_bg_color}#{gpu_temp}#[bg=green])'
set -g @cpu_percentage_format "%4.1f%%"
set -g @gpu_percentage_format "%2.0f%%"
from tmux-cpu.
Thanks for the colors bit.
This is is first time I'm using this plugin so I don't know whether it's related to Ubuntu version.
from tmux-cpu.
20.04 on WSL2. Tmux version is 3.0a
Sounds like life on the edge
from tmux-cpu.
Nah, I just got to upgrading my development environment (happens around every 2 years) and it coincided with the WSL2 release :)
I've noticed some shell scripts in htop running periodically, if they're from tmux-cpu, perhaps I could give you their input/output for debugging?
from tmux-cpu.
I guess the problem is this is not atomic
from tmux-cpu.
Related Issues (20)
- add RAM usage HOT 2
- Formatting Percentage Value HOT 7
- Shorter message if GPU not found
- RAM percentage doesn't work HOT 6
- stopped working after using dracula theme HOT 6
- not working? HOT 3
- define custom colors for fg, bg HOT 1
- gpu info not showing HOT 3
- Incorrect format for cpu HOT 5
- Default `cpu_temp_fg_color` is actually bg color. Typo? HOT 1
- temp: support AMD CPU, support GPU unit "F", fix documented name HOT 6
- Ram doesn't properly colorize. HOT 2
- CPU percentage doesn't work (maybe with macos M1) HOT 8
- Add a '%' sign after cpu_percentage HOT 3
- No temperature on AMD Ryzen 1600X HOT 1
- ubuntu 20 not working cpu_percentage HOT 2
- No CPU temperature? HOT 2
- ram usage is wrong with free
- Raspberr Pi Temp HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tmux-cpu.