Skip to content

Commit

Permalink
Merge pull request #1025 from tywkeene/main
Browse files Browse the repository at this point in the history
Update obsolete egrep call
  • Loading branch information
aristocratos authored Feb 1, 2025
2 parents ade29aa + 107dab1 commit fd0a9d1
Showing 1 changed file with 1 addition and 1 deletion.
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 fd0a9d1

Please sign in to comment.