summaryrefslogtreecommitdiff
path: root/components/disk.c
diff options
context:
space:
mode:
Diffstat (limited to 'components/disk.c')
-rw-r--r--components/disk.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/components/disk.c b/components/disk.c
index 8a9caa1..2ce260b 100644
--- a/components/disk.c
+++ b/components/disk.c
@@ -16,7 +16,8 @@ disk_free(const char *mnt)
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 *
@@ -45,7 +46,8 @@ disk_total(const char *mnt)
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 *
@@ -58,5 +60,7 @@ disk_used(const char *mnt)
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);
}