mirror of https://github.com/aristocratos/btop.git
Merge branch 'aristocratos:main' into main
This commit is contained in:
commit
78bce5b5a6
10
CHANGELOG.md
10
CHANGELOG.md
|
@ -1,3 +1,13 @@
|
||||||
|
## v1.0.13
|
||||||
|
|
||||||
|
* Changed: Graph empty symbol is now regular whitespace
|
||||||
|
|
||||||
|
## v1.0.12
|
||||||
|
|
||||||
|
* Fixed: Exception handling for faulty net download/upload speed
|
||||||
|
|
||||||
|
* Fixed: Cpu percent formatting if over 10'000
|
||||||
|
|
||||||
## v1.0.11
|
## v1.0.11
|
||||||
|
|
||||||
* Changed: atomic_wait to use while loop instead of wait() because of rare stall when a signal handler is triggered while waiting
|
* Changed: atomic_wait to use while loop instead of wait() because of rare stall when a signal handler is triggered while waiting
|
||||||
|
|
17
README.md
17
README.md
|
@ -124,7 +124,6 @@ Also needs a UTF8 locale and a font that covers:
|
||||||
* Unicode Block “Braille Patterns” U+2800 - U+28FF (Not needed in TTY mode or with graphs set to type: block or tty.)
|
* Unicode Block “Braille Patterns” U+2800 - U+28FF (Not needed in TTY mode or with graphs set to type: block or tty.)
|
||||||
* Unicode Block “Geometric Shapes” U+25A0 - U+25FF
|
* Unicode Block “Geometric Shapes” U+25A0 - U+25FF
|
||||||
* Unicode Block "Box Drawing" and "Block Elements" U+2500 - U+259F
|
* Unicode Block "Box Drawing" and "Block Elements" U+2500 - U+259F
|
||||||
* Unicode Block "General punctuation" U+2005
|
|
||||||
|
|
||||||
### **Notice (Text rendering issues)**
|
### **Notice (Text rendering issues)**
|
||||||
|
|
||||||
|
@ -208,6 +207,22 @@ Also needs a UTF8 locale and a font that covers:
|
||||||
make help
|
make help
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**Binary release (from native os repo)**
|
||||||
|
|
||||||
|
* **openSUSE**
|
||||||
|
* **Add repo**
|
||||||
|
```bash
|
||||||
|
sudo zypper ar --refresh obs://home:Werwolf2517 home:Werwolf2517
|
||||||
|
```
|
||||||
|
* **Refresh metadata**
|
||||||
|
```bash
|
||||||
|
sudo zypper ref
|
||||||
|
```
|
||||||
|
* **Install package**
|
||||||
|
```bash
|
||||||
|
sudo zypper in btop
|
||||||
|
```
|
||||||
|
|
||||||
## Compilation
|
## Compilation
|
||||||
|
|
||||||
Needs GCC 10 or higher, (GCC 11 or above strongly recommended for better CPU efficiency in the compiled binary).
|
Needs GCC 10 or higher, (GCC 11 or above strongly recommended for better CPU efficiency in the compiled binary).
|
||||||
|
|
|
@ -55,7 +55,7 @@ namespace Global {
|
||||||
{"#801414", "██████╔╝ ██║ ╚██████╔╝██║ ╚═╝ ╚═╝"},
|
{"#801414", "██████╔╝ ██║ ╚██████╔╝██║ ╚═╝ ╚═╝"},
|
||||||
{"#000000", "╚═════╝ ╚═╝ ╚═════╝ ╚═╝"},
|
{"#000000", "╚═════╝ ╚═╝ ╚═════╝ ╚═╝"},
|
||||||
};
|
};
|
||||||
const string Version = "1.0.12";
|
const string Version = "1.0.13";
|
||||||
|
|
||||||
int coreCount;
|
int coreCount;
|
||||||
string overlay;
|
string overlay;
|
||||||
|
|
|
@ -43,42 +43,42 @@ namespace Symbols {
|
||||||
|
|
||||||
const unordered_flat_map<string, vector<string>> graph_symbols = {
|
const unordered_flat_map<string, vector<string>> graph_symbols = {
|
||||||
{ "braille_up", {
|
{ "braille_up", {
|
||||||
" ", "⢀", "⢠", "⢰", "⢸",
|
" ", "⢀", "⢠", "⢰", "⢸",
|
||||||
"⡀", "⣀", "⣠", "⣰", "⣸",
|
"⡀", "⣀", "⣠", "⣰", "⣸",
|
||||||
"⡄", "⣄", "⣤", "⣴", "⣼",
|
"⡄", "⣄", "⣤", "⣴", "⣼",
|
||||||
"⡆", "⣆", "⣦", "⣶", "⣾",
|
"⡆", "⣆", "⣦", "⣶", "⣾",
|
||||||
"⡇", "⣇", "⣧", "⣷", "⣿"
|
"⡇", "⣇", "⣧", "⣷", "⣿"
|
||||||
}},
|
}},
|
||||||
{"braille_down", {
|
{"braille_down", {
|
||||||
" ", "⠈", "⠘", "⠸", "⢸",
|
" ", "⠈", "⠘", "⠸", "⢸",
|
||||||
"⠁", "⠉", "⠙", "⠹", "⢹",
|
"⠁", "⠉", "⠙", "⠹", "⢹",
|
||||||
"⠃", "⠋", "⠛", "⠻", "⢻",
|
"⠃", "⠋", "⠛", "⠻", "⢻",
|
||||||
"⠇", "⠏", "⠟", "⠿", "⢿",
|
"⠇", "⠏", "⠟", "⠿", "⢿",
|
||||||
"⡇", "⡏", "⡟", "⡿", "⣿"
|
"⡇", "⡏", "⡟", "⡿", "⣿"
|
||||||
}},
|
}},
|
||||||
{"block_up", {
|
{"block_up", {
|
||||||
" ", "▗", "▗", "▐", "▐",
|
" ", "▗", "▗", "▐", "▐",
|
||||||
"▖", "▄", "▄", "▟", "▟",
|
"▖", "▄", "▄", "▟", "▟",
|
||||||
"▖", "▄", "▄", "▟", "▟",
|
"▖", "▄", "▄", "▟", "▟",
|
||||||
"▌", "▙", "▙", "█", "█",
|
"▌", "▙", "▙", "█", "█",
|
||||||
"▌", "▙", "▙", "█", "█"
|
"▌", "▙", "▙", "█", "█"
|
||||||
}},
|
}},
|
||||||
{"block_down", {
|
{"block_down", {
|
||||||
" ", "▝", "▝", "▐", "▐",
|
" ", "▝", "▝", "▐", "▐",
|
||||||
"▘", "▀", "▀", "▜", "▜",
|
"▘", "▀", "▀", "▜", "▜",
|
||||||
"▘", "▀", "▀", "▜", "▜",
|
"▘", "▀", "▀", "▜", "▜",
|
||||||
"▌", "▛", "▛", "█", "█",
|
"▌", "▛", "▛", "█", "█",
|
||||||
"▌", "▛", "▛", "█", "█"
|
"▌", "▛", "▛", "█", "█"
|
||||||
}},
|
}},
|
||||||
{"tty_up", {
|
{"tty_up", {
|
||||||
" ", "░", "░", "▒", "▒",
|
" ", "░", "░", "▒", "▒",
|
||||||
"░", "░", "▒", "▒", "█",
|
"░", "░", "▒", "▒", "█",
|
||||||
"░", "▒", "▒", "▒", "█",
|
"░", "▒", "▒", "▒", "█",
|
||||||
"▒", "▒", "▒", "█", "█",
|
"▒", "▒", "▒", "█", "█",
|
||||||
"▒", "█", "█", "█", "█"
|
"▒", "█", "█", "█", "█"
|
||||||
}},
|
}},
|
||||||
{"tty_down", {
|
{"tty_down", {
|
||||||
" ", "░", "░", "▒", "▒",
|
" ", "░", "░", "▒", "▒",
|
||||||
"░", "░", "▒", "▒", "█",
|
"░", "░", "▒", "▒", "█",
|
||||||
"░", "▒", "▒", "▒", "█",
|
"░", "▒", "▒", "▒", "█",
|
||||||
"▒", "▒", "▒", "█", "█",
|
"▒", "▒", "▒", "█", "█",
|
||||||
|
@ -431,7 +431,7 @@ namespace Draw {
|
||||||
//? Populate the two switching graph vectors and fill empty space if data size < width
|
//? Populate the two switching graph vectors and fill empty space if data size < width
|
||||||
for (const int& i : iota(0, height * 2)) {
|
for (const int& i : iota(0, height * 2)) {
|
||||||
if (tty_mode and i % 2 != current) continue;
|
if (tty_mode and i % 2 != current) continue;
|
||||||
graphs[(i % 2 != 0)].push_back((value_width < width) ? ((height == 1) ? Mv::r(1) : " "s) * (width - value_width) : "");
|
graphs[(i % 2 != 0)].push_back((value_width < width) ? ((height == 1) ? Mv::r(1) : " "s) * (width - value_width) : "");
|
||||||
}
|
}
|
||||||
if (data.size() == 0) return;
|
if (data.size() == 0) return;
|
||||||
this->_create(data, data_offset);
|
this->_create(data, data_offset);
|
||||||
|
@ -444,6 +444,7 @@ namespace Draw {
|
||||||
if (not tty_mode) current = not current;
|
if (not tty_mode) current = not current;
|
||||||
for (const int& i : iota(0, height)) {
|
for (const int& i : iota(0, height)) {
|
||||||
if (graphs.at(current).at(i).at(1) == '[') graphs.at(current).at(i).erase(0, 4);
|
if (graphs.at(current).at(i).at(1) == '[') graphs.at(current).at(i).erase(0, 4);
|
||||||
|
else if (graphs.at(current).at(i).at(0) == ' ') graphs.at(current).at(i).erase(0, 1);
|
||||||
else graphs.at(current).at(i).erase(0, 3);
|
else graphs.at(current).at(i).erase(0, 3);
|
||||||
}
|
}
|
||||||
this->_create(data, (int)data.size() - 1);
|
this->_create(data, (int)data.size() - 1);
|
||||||
|
|
Loading…
Reference in New Issue