mirror of
https://github.com/aristocratos/btop.git
synced 2024-09-30 00:57:37 +13:00
Merge pull request #483 from simplepad/fix-freebsd
[fix] fix zfs on freebsd not reporting IO
This commit is contained in:
commit
af04de9dcc
1 changed files with 1 additions and 1 deletions
|
@ -583,8 +583,8 @@ namespace Mem {
|
||||||
if (f()) {
|
if (f()) {
|
||||||
char buf[512];
|
char buf[512];
|
||||||
size_t len = 512;
|
size_t len = 512;
|
||||||
while (not std::feof(f())) {
|
|
||||||
uint64_t nread = 0, nwritten = 0;
|
uint64_t nread = 0, nwritten = 0;
|
||||||
|
while (not std::feof(f())) {
|
||||||
if (fgets(buf, len, f())) {
|
if (fgets(buf, len, f())) {
|
||||||
char *name = std::strtok(buf, ": \n");
|
char *name = std::strtok(buf, ": \n");
|
||||||
char *value = std::strtok(NULL, ": \n");
|
char *value = std::strtok(NULL, ": \n");
|
||||||
|
|
Loading…
Reference in a new issue