From 2d013e857f751c709730482ad9efe4ba3352eb96 Mon Sep 17 00:00:00 2001 From: aristocratos Date: Wed, 6 Oct 2021 17:11:10 +0200 Subject: [PATCH 1/4] v1.0.14 Bug fixes and start of OSX development --- CHANGELOG.md | 4 +++- src/btop.cpp | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e51591..c101021 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## v1.0.14 (next release) +## v1.0.14 * Changed: Total system memory is checked at every update instead of once at start @@ -8,6 +8,8 @@ * Fixed: snap root disk and changed to compiler flags instead of env variables for detection +* Added: Development branch for OSX, by @joske + ## v1.0.13 * Changed: Graph empty symbol is now regular whitespace diff --git a/src/btop.cpp b/src/btop.cpp index 64b925d..f6a5978 100644 --- a/src/btop.cpp +++ b/src/btop.cpp @@ -55,7 +55,7 @@ namespace Global { {"#801414", "██████╔╝ ██║ ╚██████╔╝██║ ╚═╝ ╚═╝"}, {"#000000", "╚═════╝ ╚═╝ ╚═════╝ ╚═╝"}, }; - const string Version = "1.0.13"; + const string Version = "1.0.14"; int coreCount; string overlay; From dee69b54685e74b840ff5178c8c650339aad59ef Mon Sep 17 00:00:00 2001 From: aristocratos Date: Wed, 6 Oct 2021 17:16:49 +0200 Subject: [PATCH 2/4] News --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 3d269e4..e25e74d 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,11 @@ ### Under development +##### 6 October 2021 + +OsX development have been started by @joske , big thanks :) +See branch [OSX](https://github.com/aristocratos/btop/tree/OSX) for current progress. + ##### 18 September 2021 The Linux version of btop++ is complete. Released as version 1.0.0 From 132f4e6da127281763d0a30e44d2bf7a9040936d Mon Sep 17 00:00:00 2001 From: aristocratos Date: Wed, 6 Oct 2021 17:25:22 +0200 Subject: [PATCH 3/4] Ignore tags and other branches --- .github/workflows/continuous-build.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/continuous-build.yml b/.github/workflows/continuous-build.yml index 91392c0..33d545c 100644 --- a/.github/workflows/continuous-build.yml +++ b/.github/workflows/continuous-build.yml @@ -2,13 +2,16 @@ name: Continuous Build Linux on: push: + branches: + - main + tags-ignore: + - '*.*' paths: - 'src/**' - '!src/osx/**' - '!src/freebsd/**' - 'include/**' - 'Makefile' - - '.github/workflows/continuous-build.yml' jobs: build: From d96fdd7eb2fcd60b48d4837908476deb027f7c9a Mon Sep 17 00:00:00 2001 From: aristocratos Date: Wed, 6 Oct 2021 18:06:05 +0200 Subject: [PATCH 4/4] Fixed: Extra "root" partition when running in snap --- src/linux/btop_collect.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/linux/btop_collect.cpp b/src/linux/btop_collect.cpp index ff72654..9ba9bcc 100644 --- a/src/linux/btop_collect.cpp +++ b/src/linux/btop_collect.cpp @@ -112,7 +112,7 @@ namespace Shared { clkTck = 100; Logger::warning("Could not get system clock ticks per second. Defaulting to 100, processes cpu usage might be incorrect."); } - + //? Init for namespace Cpu if (not fs::exists(Cpu::freq_path) or access(Cpu::freq_path.c_str(), R_OK) == -1) Cpu::freq_path.clear(); Cpu::current_cpu.core_percent.insert(Cpu::current_cpu.core_percent.begin(), Shared::coreCount, {}); @@ -675,7 +675,7 @@ namespace Mem { } if (not meminfo.good() or totalMem == 0) throw std::runtime_error("Could not get total memory size from /proc/meminfo"); - + return totalMem; } @@ -896,7 +896,11 @@ namespace Mem { disks.at("swap").free_percent = mem.percent.at("swap_free").back(); } for (const auto& name : last_found) - if (not is_in(name, "/", "swap")) mem.disks_order.push_back(name); + #ifdef SNAPPED + if (not is_in(name, "/mnt", "swap")) mem.disks_order.push_back(name); + #else + if (not is_in(name, "/", "swap")) mem.disks_order.push_back(name); + #endif //? Get disks IO int64_t sectors_read, sectors_write, io_ticks;