Skip to content

Commit

Permalink
Merge pull request #483 from simplepad/fix-freebsd
Browse files Browse the repository at this point in the history
[fix] fix zfs on freebsd not reporting IO
  • Loading branch information
aristocratos committed Feb 23, 2023
2 parents c4ee41e + 2b18c69 commit af04de9
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 @@ -583,8 +583,8 @@ namespace Mem {
if (f()) {
char buf[512];
size_t len = 512;
uint64_t nread = 0, nwritten = 0;
while (not std::feof(f())) {
uint64_t nread = 0, nwritten = 0;
if (fgets(buf, len, f())) {
char *name = std::strtok(buf, ": \n");
char *value = std::strtok(NULL, ": \n");
Expand Down

0 comments on commit af04de9

Please sign in to comment.