summaryrefslogtreecommitdiff
path: root/glibtop.h
diff options
context:
space:
mode:
authorJames Dominic P. Guana <guana.histark@gmail.com>2021-04-10 18:19:15 +0800
committerRobert Roth <robert.roth.off@gmail.com>2021-04-23 09:48:11 +0000
commita067db056927db232a2eb8cf79d4af096962eced (patch)
tree6030559a5da1d14a3eb6c25fb47fe00176aa908c /glibtop.h
parent68b52696076f270e590b8627a2d2f77660f6c436 (diff)
downloadlibgtop-a067db056927db232a2eb8cf79d4af096962eced.tar.gz
Revert "Revert "New API to retrieve disk stats in Linux""
This reverts commit 7e214414bf23d1ea34e7fdccb17a7f41040ffea9.
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 */