Skip to content

Commit

Permalink
Merge branch 'main' into filter-segfault-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacajack authored Feb 7, 2025
2 parents c280bce + fd0a9d1 commit 22d5da0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/cmake-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,15 @@ jobs:
run: |
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
brew update --quiet
brew install --force --overwrite cmake llvm ninja lowdown
brew install --force --overwrite cmake llvm lld ninja lowdown
- name: Configure
run: |
export LLVM_PREFIX="$(brew --prefix llvm)"
export LLD_PREFIX="$(brew --prefix lld)"
export CXX="$LLVM_PREFIX/bin/clang++"
export CPPFLAGS="-I$LLVM_PREFIX/include"
export LDFLAGS="-L$LLVM_PREFIX/lib -L$LLVM_PREFIX/lib/c++ -Wl,-rpath,$LLVM_PREFIX/lib/c++ -fuse-ld=$LLVM_PREFIX/bin/ld64.lld"
export LDFLAGS="-L$LLVM_PREFIX/lib -L$LLVM_PREFIX/lib/c++ -Wl,-rpath,$LLVM_PREFIX/lib/c++ -fuse-ld=$LLD_PREFIX/bin/ld64.lld"
cmake -B build -G Ninja
- name: Compile
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/continuous-build-freebsd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ jobs:
mv bin/btop bin/btop-"$COMPILER"-"$GIT_HASH"
ls -alh bin
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: btop-x86_64-freebsd-14
name: btop-x86_64-freebsd-14-${{ matrix.compiler }}
path: 'bin/*'
if-no-files-found: error
2 changes: 1 addition & 1 deletion .github/workflows/continuous-build-netbsd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
mv bin/btop bin/btop-GCC10-"$GIT_HASH"
ls -alh bin
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: btop-x86_64-netbsd-9.3
path: 'bin/*'
Expand Down
2 changes: 1 addition & 1 deletion src/freebsd/btop_collect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ namespace Mem {
// this code is for ZFS mounts
for (const auto &poolName : Mem::zpools) {
char sysCtl[1024];
snprintf(sysCtl, sizeof(sysCtl), "sysctl kstat.zfs.%s.dataset | egrep \'dataset_name|nread|nwritten\'", poolName.c_str());
snprintf(sysCtl, sizeof(sysCtl), "sysctl kstat.zfs.%s.dataset | grep -E \'dataset_name|nread|nwritten\'", poolName.c_str());
PipeWrapper f = PipeWrapper(sysCtl, "r");
if (f()) {
char buf[512];
Expand Down

0 comments on commit 22d5da0

Please sign in to comment.