Revert "Revert "New API to retrieve disk stats in Linux""

This reverts commit 7e214414bf.
This commit is contained in:
James Dominic P. Guana
2021-04-10 18:19:15 +08:00
committed by Robert Roth
parent 68b5269607
commit a067db0569
18 changed files with 272 additions and 3 deletions

View File

@@ -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 */