Xinqi Bao's Git
projects
/
slstatus.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
entropy: Port to OpenBSD
[slstatus.git]
/
components
/
disk.c
diff --git
a/components/disk.c
b/components/disk.c
index
8a9caa1
..
2ce260b
100644
(file)
--- a/
components/disk.c
+++ b/
components/disk.c
@@
-16,7
+16,8
@@
disk_free(const char *mnt)
return NULL;
}
return NULL;
}
- return bprintf("%f", (float)fs.f_bsize * (float)fs.f_bfree / 1024 / 1024 / 1024);
+ return bprintf("%f",
+ (float)fs.f_bsize * (float)fs.f_bfree / 1024 / 1024 / 1024);
}
const char *
}
const char *
@@
-45,7
+46,8
@@
disk_total(const char *mnt)
return NULL;
}
return NULL;
}
- return bprintf("%f", (float)fs.f_bsize * (float)fs.f_blocks / 1024 / 1024 / 1024);
+ return bprintf("%f",
+ (float)fs.f_bsize * (float)fs.f_blocks / 1024 / 1024 / 1024);
}
const char *
}
const char *
@@
-58,5
+60,7
@@
disk_used(const char *mnt)
return NULL;
}
return NULL;
}
- return bprintf("%f", (float)fs.f_bsize * ((float)fs.f_blocks - (float)fs.f_bfree) / 1024 / 1024 / 1024);
+ return bprintf("%f",
+ (float)fs.f_bsize * ((float)fs.f_blocks -
+ (float)fs.f_bfree) / 1024 / 1024 / 1024);
}
}