Merge pull request #483 from simplepad/fix-freebsd

[fix] fix zfs on freebsd not reporting IO
This commit is contained in:
Jakob P. Liljenberg 2023-02-23 18:43:36 +01:00 committed by GitHub
commit af04de9dcc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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");