fix zfs on freebsd not reporting IO

This commit is contained in:
simplepad 2022-12-21 21:43:20 +03:00
parent c4ee41ebc0
commit 2b18c6952d
No known key found for this signature in database
GPG Key ID: 00DB76DD9FB623EC
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");