[libgtop] Moved new api variables to the bottom of struct.



commit d4ac1eda0752d559db8737773d6894aadc700ce3
Author: James Dominic P. Guana <guana histark gmail com>
Date:   Tue Apr 20 10:39:13 2021 +0000

    Moved new api variables to the bottom of struct.

 glibtop.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/glibtop.h b/glibtop.h
index ed73dad5..ee083cea 100644
--- a/glibtop.h
+++ b/glibtop.h
@@ -80,8 +80,6 @@ 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. This pertains to disk 
volumes */
-       int real_ndisk;                 /* Number of PHYSICAL DISKs. Only ndisk is monitored for now */
        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 */
@@ -100,6 +98,9 @@ struct _glibtop
        gid_t egid;
 
        glibtop_machine *machine;       /* Machine dependent data */
+
+       int ndisk;                      /* Number of DISKs,  zero if single-disk. This pertains to disk 
volumes */
+       int real_ndisk;                 /* Number of PHYSICAL DISKs. Only ndisk is monitored for now */
 };
 
 extern glibtop *glibtop_global_server;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]