summaryrefslogtreecommitdiffstats
path: root/src/freebsd
diff options
context:
space:
mode:
authorsimplepad <35456194+simplepad@users.noreply.github.com>2022-12-21 21:43:20 +0300
committersimplepad <35456194+simplepad@users.noreply.github.com>2022-12-21 21:45:25 +0300
commit2b18c6952dad149386b83abe7173ce661a41ea02 (patch)
tree2162cd08d1196760da5033d55f6b409f1fd88b8a /src/freebsd
parentc4ee41ebc0f7fabbf4717450c889292464dbeb6d (diff)
fix zfs on freebsd not reporting IO
Diffstat (limited to 'src/freebsd')
-rw-r--r--src/freebsd/btop_collect.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/freebsd/btop_collect.cpp b/src/freebsd/btop_collect.cpp
index 613e996..2b92ba3 100644
--- a/src/freebsd/btop_collect.cpp
+++ b/src/freebsd/btop_collect.cpp
@@ -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");