summaryrefslogtreecommitdiff
path: root/glibtop.h
diff options
context:
space:
mode:
authorJames Dominic P. Guana <guana.histark@gmail.com>2020-05-23 08:26:34 +0800
committerRobert Roth <robert.roth.off@gmail.com>2020-11-04 13:38:03 +0000
commit9e62440b314fbf87bbeca865a4223311314c52a3 (patch)
treea2d4e2598e52ba8863182d76515caaed1dce65ab /glibtop.h
parentd49e17039e5ba43ab22e284b9764842011909984 (diff)
downloadlibgtop-9e62440b314fbf87bbeca865a4223311314c52a3.tar.gz
New API to retrieve disk stats in Linux
Diffstat (limited to 'glibtop.h')
-rw-r--r--glibtop.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/glibtop.h b/glibtop.h
index 3542249a..804294da 100644
--- a/glibtop.h
+++ b/glibtop.h
@@ -80,6 +80,8 @@ struct _glibtop
int socket; /* Accepted connection of a socket */
int ncpu; /* Number of CPUs, zero if single-processor */
int real_ncpu; /* Real number of CPUs. Only ncpu are monitored */
+ int ndisk; /* Number of DISKs, zero if single-disk */
+ int real_ndisk; /* Number of PHYSICAL DISKs. Only ncpu is monitored */
unsigned long os_version_code; /* Version code of the operating system */
const char *name; /* Program name for error messages */
const char *server_command; /* Command used to invoke server */