summaryrefslogtreecommitdiff
path: root/include/glibtop/fsusage.h
diff options
context:
space:
mode:
authorOle Laursen <olau@hardworking.dk>2004-03-09 23:28:48 +0000
committerBastien Nocera <hadess@src.gnome.org>2004-03-09 23:28:48 +0000
commit897db07104fe60b3c4c586d2b686f29ec2a71367 (patch)
tree23c773bf5ee48f9083c674a87d7222479d27eebf /include/glibtop/fsusage.h
parent4bd9752d52b68936127655b6a2a903b7dc27ed1c (diff)
downloadlibgtop-897db07104fe60b3c4c586d2b686f29ec2a71367.tar.gz
Added block_size field. (Closes: #125049)
2003-12-27 Ole Laursen <olau@hardworking.dk> * include/glibtop/fsusage.h: Added block_size field. (Closes: #125049)
Diffstat (limited to 'include/glibtop/fsusage.h')
-rw-r--r--include/glibtop/fsusage.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/glibtop/fsusage.h b/include/glibtop/fsusage.h
index ab695639..fea3ecf3 100644
--- a/include/glibtop/fsusage.h
+++ b/include/glibtop/fsusage.h
@@ -1,7 +1,6 @@
/* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig
- This file is part of LibGTop 1.0.
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
@@ -34,19 +33,22 @@ G_BEGIN_DECLS
#define GLIBTOP_FSUSAGE_BAVAIL 2
#define GLIBTOP_FSUSAGE_FILES 3
#define GLIBTOP_FSUSAGE_FFREE 4
+#define GLIBTOP_FSUSAGE_BLOCK_SIZE 6
#define GLIBTOP_MAX_FSUSAGE 5
+
typedef struct _glibtop_fsusage glibtop_fsusage;
struct _glibtop_fsusage
{
guint64 flags,
- blocks, /* Total blocks. */
+ blocks, /* Total number of blocks. */
bfree, /* Free blocks available to superuser. */
bavail, /* Free blocks available to non-superuser. */
files, /* Total file nodes. */
ffree; /* Free file nodes. */
+ int block_size; /* Size of a block in bytes. */
};
#define glibtop_get_fsusage(fsusage,disk) glibtop_get_fsusage_l(glibtop_global_server, fsusage, disk)