From a067db056927db232a2eb8cf79d4af096962eced Mon Sep 17 00:00:00 2001 From: "James Dominic P. Guana" Date: Sat, 10 Apr 2021 18:19:15 +0800 Subject: Revert "Revert "New API to retrieve disk stats in Linux"" This reverts commit 7e214414bf23d1ea34e7fdccb17a7f41040ffea9. --- glibtop.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'glibtop.h') 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 */ -- cgit v1.2.1